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 */ }

时间:2022-09-28 02:36:34 所属题库:SCJP程序员认证考试题库

相似题目