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;
}
}
???