可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

class One {  void&ensp


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 */ }
参考答案
参考解析:
分类:SCJP程序员认证考试题库