电子科技大学 / 面向对象程序设计
正确率:100%
class Super{public float getNum(){return 3.0f;}} public class Sub extends Super{ //overload } which method, placed at overload, will cause a compiler error?
A.public void getNum(double d){}
B.public void getNum(){}
C.public float getNum(){return 4.0f;}
D.public double getNum(float d){return 4.0d;}
参考答案:
佳题速递: