InterviewSolution
| 1. |
Explain The Concept Of Multiple Inheritance (virtual Inheritance). Write About Its Advantages And Disadvantages? |
|
Answer» Multiple inheritance is defined as the ability of a derived class to inherit the characteristics of more than one base class. For example, you MIGHT have a class zoo which inherits VARIOUS animal classes. The advantage of multiple inheritance is that you can create a single derived class from several base classes. It HELPS in understanding the logic behind these complex relationships. Multiple inheritance is defined as the ability of a derived class to inherit the characteristics of more than one base class. For example, you might have a class zoo which inherits various animal classes. The advantage of multiple inheritance is that you can create a single derived class from several base classes. It helps in understanding the logic behind these complex relationships. |
|