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) Hierarchical

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