What is multiple inheritance? Give Example
Answer Posted / hemanth
When 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 ? | 33 Yes | 0 No |
Post New Answer View All Answers
What are the types of abstraction?
What is a class and object?
Why do we need oop?
How do you explain polymorphism?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What are the 3 pillars of oop?
to find out the minimum of two integer number of two different classes using friend function
Explain virtual inheritance?
What is a superclass in oop?
What do you mean by Encapsulation?
What is for loop and its syntax?
Can private class be inherited?
What is polymorphism give a real life example?
Why do pointers exist?
write a program to find 2 power of a 5digit number with out using big int and exponent ?