What is multiple inheritance? Give Example
Answer Posted / arun
A class is derived from more than one base class, it is
called as multiple inheritance.
Class a {
int b;
public:
void fun();
}
Class C {
int d;
public:
void fun();
}
Class d :public a, public c {
int x;
void fun1();
}
----------
Here class d inherits class a and c, hence multiple inheritance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
write string class as your own class in java without using any built-in function
Why do we use inheritance?
What is property in oops?
Why is polymorphism important in oop?
Get me an image implementation program.
What is the important feature of inheritance?
What is overloading and its types?
What is an advantage of polymorphism?
What is object-oriented programming? Webopedia definition
#include
What is the full form of oops?
Can main method override?
What are the 3 pillars of oop?
How oops is better than procedural?
What is difference between pop and oop?