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
What is the real time example of inheritance?
How does polymorphism work?
What is polymorphism and its types?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
Why is polymorphism needed?
Why do we use inheritance?
What is overriding in oop?
What is super in oop?
what are the realtime excercises in C++?
What is the importance of oop?
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?
What is oops with example?
write a C++ program for booking using constructor and destructor.
Get me an image implementation program.
what type of question are asked in thoughtworks pair programming round ?