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
Can a varargs method be overloaded?
What is oops?what is its use in software engineering?
What is pointer in oop?
How can you overcome the diamond problem in inheritance?
What is balance factor?
What are objects in oop?
when to use 'mutable' keyword and when to use 'const cast' in c++
#include
Is oop better than procedural?
What is multilevel inheritance explain with example?
Why is polymorphism needed?
What is the main purpose of inheritance law?
What is pure oop?
Is data hiding and abstraction same?
Write a program to sort the number with different sorts in one program ??