试题详情
单项选择题 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
  • 关注下方微信公众号,在线模考后查看

热门试题