在下面程序的第 6 行补充上下列哪个方法,会导致在编译过程中发生错误?
class Super{
public float getNum(){
return 3.0f;
}
}
pubhc class Sub extends Super{
}
A,public float getNum(){retun 4.0f;}
B.public void getNum(){}
C.public void getNum(double d){}
D.public double getNum(float d){ retun 4.0f ;} |
|