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 do you mean by variable?
What is destructor in oop?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< Why is object oriented programming so hard? How do you answer polymorphism? Is this job good for future?
can do this job post grduate student? How to call a non virtual function in the derived class by
using base class pointer what type of questions What is destructor example? Why is destructor used? What is a null tree? Why do pointers exist? Can we define a class within the interface? Where is pseudocode used? hi all..i want to know oops concepts clearly can any1
explain??