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
Project Description: Need someone to prepare a trading platform and sophisticated trading strategy. Must have knowledge and experience in most of these: QuickFIX, Esper, Quan

c++ coding decode the letters from numbers

Introduction to C++ C++ was developed by Bjarne Stroustrup at Bell Laboratories in 1983. Originally, it was known as " C with class". C+ as an enhancement to the C language was


This problem familiarizes you with using random numbers in C++. The program is to compute a good approximation of π using a simulation method called "Monte Carlo". The following fi

Write a program that finds the minimum total number of shelves, including the initial one required for this loading process.

Build a program that calculates a discount for items based on quantity bought each item is $99.99 Ask user to enter the quantity of the items Get the quantity of items from the u

#question.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 po

A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string of the c

store the name of the political parties and the corresponding votes in two lists of equal length. access the lists is provided by two methods, each of which creates an interator th