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
A function REPAT is specified below. Function REPAT(c in Char, i in Int, s in mString) return in mString pre 1 ≤ i ≤ the length of s. post The returned value is a string identic

Damjibhai and Shamjibhai are two jeweler friends. They decide to play a simple game. The game comprises of removing the jewels for polishing, turn by turn. Once a jewel is removed

Introduction to Classes Object-oriented programming (OOP) is a conceptual approach to design programs. It can be executed in many languages, whether they directly support OOP c

Relationship between an Array and Pointers. Consider the following. int arr[] = {0,1,2,3,4,5,6,7,8,9}; If we write arr , it is considered as the address of the first elem

A conversion constructor declared with the explicit keyword. The compiler does not use an explicit constructor to execute an implied conversion of types. Its purpose is reserved ex

Produce a pseudo code to be used for development compute and display some data on the bounces a ball will make when dropped from a given height. To simplify the problem, you ass

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that

1)      Factorial (for this question just provide an answer for each part)  1.1  Debug the following program to calculate N! #include using namespace std; main()

For this program you will add and test 2 new member functions to the IntSLList class posted on the website. The two member functions are: insertByPosn(int el, int pos) Assuming t

Program to Open a file in C++: int main() {                  char ch;                  ifstream f1 ("OLDFILE.TXT");                  ofstream f2 ("NEWFILE.TXT");