int m = super.getX();
int n = super.getY();
public int sum(){
System.out.println( m + n);
return m + n;
}
public int avg(){
return (m + n)/2;
}
public int sum(){
return super.getX() + super.getY();
}
public int avg(){
return (super.getX() + super.getY()) / 2;
}
Base 类里面 x y什么时候赋值的,构造里面吗
你东西不够,只能给个大概
你把 base x y设默认值就好了,但不推荐