单选题is-a关系是指()A继承关系B实现关系C关联关系D聚合关系
单选题
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,应该改成组合或聚合关系
(60)下列关于面向对象数据库系统的叙述中,哪一个是不正确的?A)构造复杂对象数据类型的构造器包括集合B)引用也可用于构造复杂对象数据类型C)子类继承超类的关系是 IS-A 关系D)超类继承子类的全部属性
对于违反里氏替换原则的两个类A和B,可以采用的候选解决方案中,正确的是( )。A.尽量将一些需要扩展的类或者存在变化的类设计为抽象类或者接口,并将其作为基类,在程序中尽量使用基类对象进行编程 B.创建一个新的抽象类C,作为两个具体类的超类,将A和B共同的行为移动到C中,从而解决A和B行为不完全一致的问题 C.将B到A的继承关系改成组合关系 D.区分是Is-a还是Has-a。如果是Is-a,可以使用继承关系,如果是Has-a,应该改成组合或聚合关系
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.
下列关于面向对象数据库系统的叙述中,哪一个是不正确的?A.构造复杂对象数据类型的构造器包括集合B.引用也可用于构造复杂对象数据类型C.子类继承超类的关系是IS-A关系D.超类继承子类的全部属性
面向对象分析中,类与类之间的 IS-A关系的是一种( ),类与类之间的IS-PART-OF关系是一种( )。A.依赖关系 B.关联关系 C.泛化关系 D.聚合关系A.依赖关系 B.关联关系 C.泛化关系 D.聚合关系
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 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: 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.
多选题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
多选题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
多选题下面说法正确的是()A继承表示is-a的关系B继承表示has-a的关系C要表示has-a的关系必须使用接口D可以使用实例变量表示has-a的关系