多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

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
答案解析:
进入题库查看解析

微信扫一扫手机做题