1.

How many base classes can a derived class have which is implementing multiple inheritance?(a) Only 2(b) At least 2(c) At most 2(d) As many as requiredThe question was posed to me during an internship interview.This is a very interesting question from Multiple Inheritance topic in portion Inheritance & its Types of Object Oriented Programming

Answer»

Right ANSWER is (d) As many as required

For explanation: The classes can derive from as many classes as required since the multiple inheritance feature is made to combine or GROUP together the functions that are from different classes. This MAKE the DERIVED class stronger in terms of its flexibility.



Discussion

No Comment Found

Related InterviewSolutions