class One { void foo() {} } class Two extends One { //insert method here } Which three methods, inserted individually at line 14, will correctly complete class Two?()
- A、 int foo() { /* more code here */ }
- B、 void foo() { /* more code here */ }
- C、 public void foo() { /* more code here */ }
- D、 private void foo() { /* more code here */ }
- E、 protected void foo() { /* more code here */ }
正确答案:B,C,E
答案解析:有
微信扫一扫手机做题