Friday 5 April 2013

What is multiple inheritance(virtual inheritance)? What are its advantages and disadvantages?



What is multiple inheritance(virtual inheritance)? What are its advantages and disadvantages?
Multiple Inheritance is the process whereby a child can be derived from more than one parent class. The advantage of multiple inheritance is that it allows a class to inherit the functionality of more than one base class thus allowing for modeling of complex relationships. The disadvantage of multiple inheritance is that it can lead to a lot of confusion(ambiguity) when two base classes implement a method with the same name.


Blog Author: Vijay Kumar

No comments:

Post a Comment