多选题Given: Which three are true?()ACat is-a AnimalBCat is-a JumperCDog is-a AnimalDDog is-a JumperECat has-a AnimalFBeagle has-a Tail

多选题
Given: Which three are true?()
A

Cat is-a Animal

B

Cat is-a Jumper

C

Dog is-a Animal

D

Dog is-a Jumper

E

Cat has-a Animal

F

Beagle has-a Tail


参考解析

解析: 暂无解析

相关考题:

对于违反里氏替换原则的两个类A和B,可以采用的候选解决方案中,正确的是( )。A.尽量将一些需要扩展的类或者存在变化的类设计为抽象类或者接口,并将其作为基类,在程序中尽量使用基类对象进行编程 B.创建一个新的抽象类C,作为两个具体类的超类,将A和B共同的行为移动到C中,从而解决A和B行为不完全一致的问题 C.将B到A的继承关系改成组合关系 D.区分是Is-a还是Has-a。如果是Is-a,可以使用继承关系,如果是Has-a,应该改成组合或聚合关系

继承性是一种“is-a”联系,是数据间的()。 A、聚集联系B、泛化/细化联系C、封装联系D、包含联系

Given:Which three are true?() A.Cat is-a AnimalB.Cat is-a JumperC.Dog is-a AnimalD.Dog is-a JumperE.Cat has-a AnimalF.Beagle has-a TailG.Beagle has-a Jumper

Given:Which two are true? () A.The output is mm.B.The output is mc.C.Component is-a Meter.D.Component has-a Meter.E.DeluxeThingy is-a Component.F.DeluxeThingy has-a Component.

Given that: Gadget has-a Sprocket and Gadget has-a Spring and Gadget is-a Widget and Widget has-a Sprocket Which two code fragments represent these relationships? () A.B.C.D.E.F.

______表示了对象间“is-a”的关系。A.组合B.引用C.聚合D.继承A.B.C.D.

表示了类间“is-a”的关系,而(32)表示了类之间的“contains-a”关系。A.组合B.引用C.聚合D.继承

表示了对象间“is-a”的关系。A.组合B.引用C.聚合D.继承

面向对象分析中,类与类之间的 IS-A关系的是一种( ),类与类之间的IS-PART-OF关系是一种( )。A.依赖关系 B.关联关系 C.泛化关系 D.聚合关系A.依赖关系 B.关联关系 C.泛化关系 D.聚合关系

面向对象分析中,类与类之间的 "IS-A"关系的是一种( ),类与类之间的"IS-PART-OF"关系是一种(请作答此空)。A.依赖关系B.关联关系C.泛化关系D.聚合关系

面向对象分析中,类与类之间的 “IS-A”关系的是一种(1),类与类之间的“IS-PART-OF”关系是一种(2)。A.依赖关系 B.关联关系 C.泛化关系 D.聚合关系

下列关于类的描述,正确的是()A、父类具有子类的特征B、一个类只能从一个类继承C、is-a关系具有传递性D、uses-a表示类的继承机制

下列关于类之间关系的描述,正确的是()A、has-a表示一个类部分地使用另一个类B、uses-a表示类的包含关系C、is-a关系具有对称性D、is-a机制称为“继承”

10. interface Jumper { public void jump(); }  ......  20. class Animal {}  ......  30. class Dog extends Animal { 31. Tail tail; 32. }  ......  40. class Beagle extends Dog implements Jumper {  41. public void jump() { }  42. }  .......  50. class Cat implements Jumper {  51. public void jump() { }  52. }  Which three are true?()A、 Cat is-a AnimalB、 Cat is-a JumperC、 Dog is-a AnimalD、 Dog is-a JumperE、 Cat has-a AnimalF、 Beagle has-a TailG、 Beagle has-a Jumper

is-a关系是指()A、继承关系B、实现关系C、关联关系D、聚合关系

对于违反里氏替换原则的两个类A和B,可以采用的候选解决方案是()A、尽量将一些需要扩展的类或者存在变化的类设计为抽象类或者接口,并将其作为基类,在程序中尽量使用基类对象进行编程B、创建一个新的抽象类C,作为两个具体类的超类,将A和B共同的行为移动到C中,从而解决A和B行为不完全一致的问题C、将B到A的继承关系改成组合关系D、区分是Is-a还是Has-a。如果是Is-a,可以使用继承关系,如果是Has-a,应该改成组合或聚合关系

Which four are true?()A、 Has-a relationships should never be encapsulated.B、 Has-a relationships should be implemented using inheritance.C、 Has-a relationships can be implemented using instance variables.D、 Is-a relationships can be implemented using the extends keyword.E、 Is-a relationships can be implemented using the implements keyword.F、 An array or a collection can be used to implement a one-to-many has-a relationship.G、 The relationship between Movie and Actress is an example of an is-a relationship.

Which two are true about has-a and is-a relationships?()A、 Inheritance represents an is-a relationship.B、 Inheritance represents a has-a relationship.C、 Interfaces must be used when creating a has-a relationship.D、 Instance variables can be used when creating a has-a relationship.

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、继承表示is-a的关系B、继承表示has-a的关系C、要表示has-a的关系必须使用接口D、可以使用实例变量表示has-a的关系

Which four statements are true?()A、Has-a relationships should never be encapsulated.B、Has-a relationships should be implemented using inheritance.C、Has-a relationships can be implemented using instance variables.D、Is-a relationships can be implemented using the extends keyword.E、Is-a relationships can be implemented using the implements keyword.F、An array or a collection can be used to implement a one-to-many has-a relationship.

多选题Given: 10. interface Jumper { public void jump(); } ...   20. class Animal {} ...   30. class Dog extends Animal {   31. Tail tail;   32. }   ...   40. class Beagle extends Dog implements Jumper{   41. public void jump() {}  42. }   ...   50. class Cat implements Jumper{   51. public void jump() {}   52. }. Which three are true?()ACat is-a JumperBCat is-a AnimalCDog is-a JumperDDog is-a AnimalEBeagle has-a JumperFCat has-a AnimalGBeagle has-a Tail

多选题Given: Which three are true?()ACat is-a AnimalBCat is-a JumperCDog is-a AnimalDDog is-a JumperECat has-a AnimalFBeagle has-a Tail

多选题Which two are true about has-a and is-a relationships?()AInheritance represents an is-a relationship.BInheritance represents a has-a relationship.CInterfaces must be used when creating a has-a relationship.DInstance variables can be used when creating a has-a relationship.

多选题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?()AThis code will compile.BThis code demonstrates proper design of an is-a relationship.CThis code demonstrates proper design of a has-a relationship.DA Java programmer using the Team class could remove Player objects from a Team object.

多选题下面说法正确的是()A继承表示is-a的关系B继承表示has-a的关系C要表示has-a的关系必须使用接口D可以使用实例变量表示has-a的关系

多选题10. interface Jumper { public void jump(); }  ......  20. class Animal {}  ......  30. class Dog extends Animal { 31. Tail tail; 32. }  ......  40. class Beagle extends Dog implements Jumper {  41. public void jump() { }  42. }  .......  50. class Cat implements Jumper {  51. public void jump() { }  52. }  Which three are true?()ACat is-a AnimalBCat is-a JumperCDog is-a AnimalDDog is-a JumperECat has-a AnimalFBeagle has-a TailGBeagle has-a Jumper

多选题Which four are true?()AHas-a relationships should never be encapsulated.BHas-a relationships should be implemented using inheritance.CHas-a relationships can be implemented using instance variables.DIs-a relationships can be implemented using the extends keyword.EIs-a relationships can be implemented using the implements keyword.FAn array or a collection can be used to implement a one-to-many has-a relationship.GThe relationship between Movie and Actress is an example of an is-a relationship.