Machine-translated by Google. Questions are authored in English.
Top

Discussion

The.............. inheritance supports the mechanism of deriving one base class with more than one derived classes.

  • A.Hierarchical
  • B.Multiple
  • C.Multilevel
  • D.Hybrid

Answer: A

The answer is Hierarchical inheritance.

In hierarchical inheritance several derived classes inherit from one base class, for example Circle, Square and Triangle all derived from Shape. This is the case the question describes: one base class with more than one derived class.

Multiple inheritance is the reverse, one derived class with several base classes. Multilevel inheritance is a chain (A to B to C), and hybrid inheritance is a combination of two or more of these types.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.