1.

When multiple inheritance is used, which class object should be used in order to access all the available members of parent and derived class?(a) Derived class object(b) Parent class objects(c) Use Abstract derived class(d) Derive a class from derived classI had been asked this question by my college director while I was bunking the class.I need to ask this question from Multiple Inheritance topic in chapter Inheritance & its Types of Object Oriented Programming

Answer»

Right option is (a) Derived class object

The best explanation: The derived class object can access all of its own members. It can ALSO access the available members of the PARENT classes, because the members are derived into the derived class.



Discussion

No Comment Found

Related InterviewSolutions