两个类不在同一文件?
(1)public class Buld {
private Circuit circuit;
public void setCircuit(Circuit circuit){
this.circiut=circiut;
}
public void light(){
circuit.transportPower();
}
public void goOut(){
System.out.println("go out");
}
}
(2)public class Circiut {
private Bulb bulb;
public void setBulb(Bulb bulb){
this.bulb=bulb;
}
public void swithchOn(){
bulb.light();
}
public void swithchOff(){
bult.goOut();
}
public void transportPower(){
System.out.println("transport power ");
}
}
画红线部分无法解析类型?为什么?