1.

Which among the following is true?(a) Hierarchical inheritance is subset of multiple inheritances(b) Hierarchical inheritance is strongest inheritance type(c) Hierarchical inheritance uses only 2 classes for implementation(d) Hierarchical inheritance allows inheritance of common features to more than one classI had been asked this question in exam.Query is from Hierarchical Inheritance topic in division Inheritance & its Types of Object Oriented Programming

Answer»

Correct option is (d) Hierarchical inheritance allows inheritance of common features to more than one class

Best explanation: Hierarchical inheritance is USED to make all the inherited classes have some common features obtained from a single base class. This allows all the classes to MAINTAIN a GROUP or to be classified under one class.



Discussion

No Comment Found

Related InterviewSolutions