1.

If a base class is being derived by two other classes, which inheritance will that be called?(a) Single(b) Multiple(c) Multi-level(d) HierarchicalI had been asked this question during an online exam.I would like to ask this question from Base Class topic in section Classes of Object Oriented Programming

Answer»

The correct answer is (d) Hierarchical

For explanation: When more than one classes are being DERIVED from a single PARENT class, the INHERITANCE is KNOWN as hierarchical inheritance. This is usually USEFUL when the base class is higher abstraction of its derived classes.



Discussion

No Comment Found

Related InterviewSolutions