What is multiple inheritance? Give Example

Answer Posted / palsaniya sadikhasan, meta.

a class is derived from an existing class in multiple level.
e.g.
class abc
{
int a;
public:
void getdata();
};

class xyz public:abc
{
int b;
public:
void getinput();
}

class pqr public:xyz
{
int c;
public:
void show();
}

Is This Answer Correct ?    9 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the diamond problem in inheritance?

807


What are the benefits of oop?

847


How to use CMutex, CSemaphore in VC++ MFC

4529


What is abstraction example?

819


What is variable example?

780


to find out the minimum of two integer number of two different classes using friend function

1858


What does it mean when someone says I oop?

793


What is the oops and benefits of oops programming?

725


Why it is called runtime polymorphism?

774


what are the ways in which a constructors can be called?

1781


What are oops functions?

775


Why multiple inheritance is not possible?

780


What is object-oriented programming? Webopedia definition

940


Which is not an object oriented programming language?

725


What is inheritance in simple words?

804