What is multiple inheritance? Give Example

Answer Posted / palsaniya sadikhasan, meta.

Sorry! Following example is the Multilevel inheritance.
which Post by me.


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 ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the real time example of inheritance?

721


How does polymorphism work?

737


What is polymorphism and its types?

691


Describe these concepts: Polymorphism, Inheritance and Abstraction.

704


Why is polymorphism needed?

694






Why do we use inheritance?

715


What is overriding in oop?

649


What is super in oop?

694


what are the realtime excercises in C++?

2431


What is the importance of oop?

698


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?

2039


What is oops with example?

658


write a C++ program for booking using constructor and destructor.

2132


Get me an image implementation program.

1637


what type of question are asked in thoughtworks pair programming round ?

1848