1.

Which among the following best describes multiple inheritance?(a) Two classes being parent of any other classes(b) Three classes being parent of other classes(c) More than one class being parent of other child classes(d) More than one class being parent of single childI had been asked this question during an internship interview.My question is taken from Types of Inheritance in division Inheritance & its Types of Object Oriented Programming

Answer»

Right choice is (d) More than one CLASS being PARENT of single child

Explanation: If a class inherits more than one class, it is known as multiple inheritance. This should not be REFERRED with only two or three CLASSES being INHERITED. But there must be one class which inherits more than one class to be called as multiple inheritance.



Discussion

No Comment Found

Related InterviewSolutions