Described multiple inheritance(virtual inheritance)?, C/C++ Programming

Described multiple inheritance(virtual inheritance)? And explain its advantages and disadvantages?

A: It is the procedure in which a child can be derived from more than one parent class. The benefit of multiple inheritances is that it let a class to inherit the functionality of more than one base class therefore allowing for modeling of difficult relationships.

The drawback of multiple inheritance is that it can lead to lots of confusion(ambiguity) while two base classes implement a method by the same name.

 

 

Posted Date: 3/16/2013 2:53:12 AM | Location : United States







Related Discussions:- Described multiple inheritance(virtual inheritance)?, Assignment Help, Ask Question on Described multiple inheritance(virtual inheritance)?, Get Answer, Expert's Help, Described multiple inheritance(virtual inheritance)? Discussions

Write discussion on Described multiple inheritance(virtual inheritance)?
Your posts are moderated
Related Questions
decodes the sending smuggler string from the number format into plain text

A: Depends. Might be "zero" Objects which are thrown must have a publicly accessible copy-constructor. The compiler is permitted to generate code which copies the thrown object


Ravi is a newbie to the programming and while learning the programming language he came to know the following rules:

Many human diseases could be controlled by the knowledge of the gene’s structure and pattern. The human gene could be represented by four nucleotides. Each nucleotide is represente


Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

define a class for student

Program is to create a file student.dat: Program is to create a file student.dat which contains all name, roll_no,marks(5 sub) and percentage   class student    {