1.

If a base class is inherited from another class and then one class derives it, which inheritance is shown?(a) Multiple(b) Single(c) Hierarchical(d) Multi-levelI have been asked this question by my college professor while I was bunking the class.Origin of the question is Base Class in chapter Classes of Object Oriented Programming

Answer»

The correct CHOICE is (d) Multi-level

The best explanation: If a base class is inherited from another class, SINGLE inheritance is SHOWN. But when ONE more class inherits the derived class, this becomes a multi-level inheritance.



Discussion

No Comment Found

Related InterviewSolutions