qq_宇_35
2017-08-04 17:45
The method zhouchang() of type yuan must override or implement a supertype method
package duotaichouxianglei; public class yuan extends tuxing { public void zhouchang() { // TODO Auto-generated method stub System.out.println("yuandezhouchang"); } @Override public void mianji() { // TODO Auto-generated method stub } }
定义好抽象父类保存下即可。
package duotaichouxianglei;
public class yuan extends tuxing {
float r;
public void zhouchang() {
// TODO Auto-generated method stub
zhouchang = 3.14*2*r;
System.out.println("yuandezhouchang");
}
@Override
public void mianji() {
// TODO Auto-generated method stub
}
public void yuan(float r){
r = r;
}
}
???
Java入门第二季 升级版
530559 学习 · 6091 问题
相似问题