public class X {  public X aMethod() { return this;}  }  public class Y extends X {  }  Which two methods can be added to the definition of class Y?()

A .  public void aMethod() {} B .  private void aMethod() {} C .  public void aMethod(String s) {} D .  private Y aMethod() { return null; } E .  public X aMethod() { return new Y(); }

时间:2022-10-19 14:52:37 所属题库:SCJP程序员认证考试题库

相似题目