1) class Super{ 2) public float getNum(){return 3.0f;} 3) } 4) 5) public class Sub extends Super{ 6) 7) } which method, placed at line 6, will cause a compiler erro
选项:
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 19:49:34