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

String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

1944


What is coupling in oops?

598


What are main features of oop?

636


How is polymorphism achieved?

587


Give two or more real cenario of virtual function and vertual object

1855






What is difference between pop and oop?

609


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1792


What do you mean by variable?

577


What are the 3 pillars of oop?

618


What is the types of inheritance?

604


How to call a non virtual function in the derived class by using base class pointer

5278


Where You Can Use Interface in your Project

1429


What exactly is polymorphism?

611


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1623


How is class defined?

588