1.

Hierarchical inheritance can be a subset of _________________(a) Hybrid inheritance(b) Multiple inheritance(c) Single level inheritance(d) Multilevel inheritanceI got this question by my school teacher while I was bunking the class.The above asked question is from Hierarchical Inheritance in section Inheritance & its Types of Object Oriented Programming

Answer»

Correct answer is (a) Hybrid inheritance

To explain: When we USE hybrid inheritance, it can contain any type of inheritance or combination or more than TWO TYPES. HENCE it may contain Hierarchical inheritance too, hence it can be subset of hybrid inheritance.



Discussion

No Comment Found

Related InterviewSolutions