试题详情
多项选择题 public class Team extends java.util.LinkedList {  public void addPlayer(Player p) {  add(p);  }  public void compete(Team opponent) { /* more code here */ }  }  class Player { /* more code here */ }  Which two are true?()

A、 This code will compile.

B、 This code demonstrates proper design of an is-a relationship.

C、 This code demonstrates proper design of a has-a relationship.

D、 A Java programmer using the Team class could remove Player objects from a Team object.

  • A,D
  • 关注下方微信公众号,在线模考后查看

热门试题