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