package HuaLin;public abstract class Tool { public abstract void Transport();}//子类代码package HuaLin;public class Airport extends Tool { public void Transport() { System.out.println("空中运输"); }为什么在子类Transport那一直报错呢?
2 回答
Someone0123
TA贡献7条经验 获得超0个赞
package HuaLin;
public abstract class Tool {
void Transport();
}
//子类代码
package HuaLin;
public class Airport extends Tool {
public void Transport() {
System.out.println("空中运输");
}
}
添加回答
举报
0/150
提交
取消