When to use Multiple Inheritance?

Answer Posted / dee

Multiplae inheritance is used when we want to reuse the
code from 2 ro 3 classes.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does com provide language transparency?

600


What is abstraction with real time example?

613


Write a program to add three numbers in C++ utilizing classes.

619


Which is best ide for c++?

561


Define private, protected and public access control.

602






Explain the static member function.

701


What operators can you overload in c++?

592


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

603


What are files in c++?

587


How to give an alternate name to a namespace?

586


What is the difference between equal to (==) and assignment operator (=)?

575


What is the difference between C and CPP?

624


Explain binary search.

574


What are structures and unions?

566


Can class objects be passed as function arguments?

600