1.

How many types of inheritance can be used at a time in a single program?(a) Any two types(b) Any three types(c) Any 4 types(d) Any type, any number of timesThis question was posed to me by my college professor while I was bunking the class.This interesting question is from Types of Inheritance in chapter Inheritance & its Types of Object Oriented Programming

Answer»

Right CHOICE is (d) Any type, any number of times

The best EXPLANATION: Any type of inheritance can be used in any PROGRAM. There is no rule to USE only few types of inheritance. Only thing that matters is how the CLASSES are inherited and used.



Discussion

No Comment Found

Related InterviewSolutions