将下列哪个代码(
A:
B:
C:D)放入程序中标注的【代码】处将导致编译错误?
class A {
public float getNum() {
return 3.0f;
}
}
public class B extends A {
【代码】
}
选项:
A:public float getNum(){return 4.0f;}
B:public void getNum(){ }
C:public void getNum(double d){ }
D:public double getNum(float d){return 4.0d;}
发布时间:2024-03-31 22:15:12