当前位置:SCJP程序员认证考试题库

问题:

[多选]

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。 B。 C。 D。 简述橡胶硫化(交联,固化)过程的四个阶段及其各阶段对橡胶性能的影响。 简述水土保持生态建设工程治理措施。 输送油气焊管的堆放定额应视钢管的壁厚、弯曲度及圆度不变形而定,一般每平方米堆放不超过()。 8t。 5t。 10t。 3t。 幼儿凭证计划

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?()

参考答案:

  参考解析

本题暂无解析

在线 客服