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 benefits of oop?
How do you use inheritance in unity?
What is the example of polymorphism?
What do you mean by Encapsulation?
What are two types of polymorphism?
how to get the oracle certification? send me the answer
What is an example of genetic polymorphism?
What is inheritance and how many types of inheritance?
What is data binding in oops?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
Why do we use polymorphism?
Which is better struts or spring?
Why oops is important?
Can enum be null?
What is difference between data abstraction and encapsulation?