When will you use multiple inheritance and when will you use multi level inheritance Describe with an example?

Just take the following book from the library:"Effective C++" by Scott Meyers. He has a whole chapter about pros and cons of Multiple Inheritance and why and when you should and SHOULD NOT use it. Also, the ultimate guide is : "The C++ Programming Language" by B.Stroustrup, the father of C++.

Cheers, Dragomir Stanchev

When asked in an interview or otherwise a brief answer is:

"Multiple Inheritance is when a derived class inherits properties and methods from multiple classes as opposed to Single Inheritance. So, for cases where I find that I have two or more classes and another new class is to be created that has properties and behaviour of both or all the base classes then I use Multiple inheritance. For example, If base class one is Terrestrial and Base Class two is Aquatic, then the new class Amphibian will be case of multiple inheritance deriving from both the two base classes."

Improve Answer Discuss the question "When will you use multiple inheritance and when will you use multi level inheritance Describe with an example?" Watch Question

First answer by ID1402035698. Last edit by Abhijeetsinha. Contributor trust: 14 [recommend contributor]. Question popularity: 19 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > When will you use multiple inheritance and when will you use multi level inheritance Describe with an example?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Inheritance jersey law?  The units of inheritance?  What is inheritance in c?  What is multiple inheritance?  When would you use inheritance?  Example of multiple inheritance?  What do you mean by inheritance?  Vtable for Multiple inheritance?  Does C support multiple inheritance?  Define Multi level inheritance in c?  Inheritance with an example program?  What is a multiple allele inheritance?  What are the advantages of inheritance?  When shall you use Multiple Inheritance?  What are forms of inheritance are there?  What is Multi-level of inheritance in VB?  How you can implement Multiple Inheritance?  26 When shall you use Multiple Inheritance?  What is multi-level and multiple inheritence?  Example for implementing multiple inheritance?