class super { public float getNum() {return 3.0f;} } public class Sub extends Super { } Which method, placed at line 6, will cause a compiler error?()
- A、 Public float getNum() {return 4.0f; }
- B、 Public void getNum (){}
- C、 Public void getNum (double d){}
- D、 Public double getNum (float d) {retrun 4.0f; }
正确答案:B
答案解析:有
微信扫一扫手机做题