1.

Multiple inheritance is ____________________(a) When a class is derived from another class(b) When a class is derived from two or more classes(c) When a class is derived from other two derived classes(d) When a class is derived from exactly one classI had been asked this question by my college professor while I was bunking the class.This interesting question is from Multiple Inheritance in portion Inheritance & its Types of Object Oriented Programming

Answer»

The correct choice is (b) When a class is derived from TWO or more classes

Easiest EXPLANATION - The multiple inheritance is used when a class is being derived using two base classes or more. This way a single class can have features of more than one classes inherited into a single unit. This lets us combine two class MEMBERS into a single class.



Discussion

No Comment Found

Related InterviewSolutions