Which two, independently, will allow Sub to compile?()
- A、Change line 2 to:public int a;
- B、Change line 2 to:protected int a;
- C、Change line 13 to:public Sub(){this(5);}
- D、Change line 13 to:public Sub(){super(5);}
- E、Change line 13 to:public Sub(){super(a);}
正确答案:C,D
答案解析:有
微信扫一扫手机做题