1.

What is meant by multiple inheritance?(a) Deriving a base classfrom derived class(b) Deriving a derived class from base class(c) Deriving a derived class from more than one base class(d) Deriving a derived base classI had been asked this question in a national level competition.Origin of the question is Multiple Inheritance in section Class Hierarchies, Library & Containers of C++

Answer»

Right choice is (c) DERIVING a DERIVED class from more than one base class

To explain I WOULD say: MULTIPLE INHERITANCE enables a derived class to inherit members from more than one parent.



Discussion

No Comment Found

Related InterviewSolutions