1.

If single inheritance is used with class A and B. A is base class. Then class C, D and E where C is base class and D is derived from C, then E is derived from D. Class C is made to inherit from class B. Which is the resultant type?(a) Single level(b) Multilevel(c) Hybrid(d) MultipleI got this question by my school principal while I was bunking the class.This interesting question is from Hybrid Inheritance in portion Inheritance & its Types of Object Oriented Programming

Answer»

Right answer is (b) Multilevel

The best explanation: The statement REPRESENTS multilevel inheritance. It is not hybrid since looking at complete idea, one can’t DIFFERENTIATE whether two type of inheritance are USED. HENCE it is multilevel inheritance.



Discussion

No Comment Found

Related InterviewSolutions