1.

How many classes should a program contain to implement the multiple inheritance?(a) Only 1(b) At least 1(c) At least 3(d) Exactly 3I got this question during an interview for a job.I'd like to ask this question from Multiple Inheritance topic in section Inheritance & its Types of Object Oriented Programming

Answer»

The correct ANSWER is (C) At LEAST 3

The best I can explain: For the IMPLEMENTATION of multiple inheritance, there must be at least 3 CLASSES in a program. At least 2 base classes and one class to inherit those two classes. If lesser, it becomes single level inheritance.



Discussion

No Comment Found

Related InterviewSolutions