【单选题】【消耗次数:1】
下列关于类的描述,正确的是()
父类具有子类的特征
一个类只能从一个类继承
is-a关系具有传递性
uses-a表示类的继承机制
参考答案:
复制
纠错
相关题目
【单选题】 继承具有(),即当基类本身也是某一个类的派生类时,底层的派生类也会自动继承间接基类的成员。
①  规律性
②  传递性
③  重复性
④  多样性
【单选题】 继承具有( ),即当基类本身也是某一个类的派生类时,底层的派生类也会自动继承间接基类的成员。
①  规律性
②  传递性
③  重复性
④  多样性
【单选题】 下面是有关子类继承父类构造函数的描述,其中正确的是( )。
① 
②  创建子类的对象时,先调用子类自己的构造函数,然后调用父类的构造函数
③  子类无条件地继承父类不含参数的构造函数
④  子类必须通过super关键字调用父类的构造函数
⑤  子类无法继承父类的构造函数
【单选题】 ()是父类和子类之间共享数据和方法的机制,这是类之间的一种关系。
①  重载
②  继承性
③  封装
④  多态性
【判断题】 面向对象的继承性是子类自动享父类数据结构和方法的机制
①  正确
②  错误
【判断题】 Java语言中,所创建的子类都应有一个父类。
①  正确
②  错误
【单选题】 若classB中定义了一个classA的类成员Aa,则关于类成员的正确描述是()
①  在类B的成员函数中可以访问A类的私有数据成员
②  在类B的成员函数中可以访问A类的保护数据成员
③  类B的构造函数可以调用类A的构造函数做数据成员初始化
④  类A的构造函数可以调用类B的构造函数做数据成员初始化
【单选题】 Container 是下列哪一个类的子类( )。
①  Graphics
②  Window
③  Applet
④  Component
【单选题】 C++的继承性允许派生类继承基类的()
①  部分特性,并允许增加新的特性或重定义基类的特性
②  部分特性,但不允许增加新的特性或重定义基类的特性
③  所有特性,并允许增加新的特性或重定义基类的特性
④  所有特性,但不允许增加新的特性或重定义基类的特性
【单选题】 在C++中类之间的继承关系具有
①  自反性
②  对称性
③  传递性
④  反对称性
随机题目
【单选题】 Lily is upset these days. Do you know how to ______ her ______?
①  cheer; up
②  cheer; on
③  pick; up
④  put; away
【单选题】 I received his mother’ s telephone call at eleven. _____ that he was badly hurt in an accident yesterday.
①  Then did I know
②  Only then I knew
③  Only then did I know
④  Only then knew I
【单选题】 The trade unions in this industry are ____ any reduction in wages.
①  objecting against
②  opposed to
③  reacted to
④  resisting against
【单选题】 Hurricanes are severe cyclones with winds over seventy five miles an hour ____ originate over tropical ocean waters.
①  which
②  who
③  where
④  how to
【单选题】 John’s score on the test is the highest in the class; he ____ last night.
①  must study
②  should have studied
③  must have studied
④  is sure to study
【单选题】 This is the hotel _______last month.
①  which they stayed
②  at that they stayed
③  where they stayed at
④  where they stayed
【单选题】 He doesn’ t spend much time____ his homework.
①  in
②  do
③  on
④  to do
【单选题】 People’s status in society is frequently ____ by how much they own.
①  measured
②  examined
③  tested
④  questioned
【单选题】 Jack is so ____ to his appearance that he never has his clothes pressed.
①  adverse
②  anonymous
③  indifferent
④  casual
【单选题】 It’s no good ____ him. He is always indifferent towards others’ matters.
①  to turn to
②  turning to
③  turn to
④  turned to