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
Plese get me a perfect C++ program for railway/airway reservation with all details.
State what is encapsulation and friend function?
What is this pointer in oop?
Can destructor be overloaded?
What do you mean by variable?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
explain sub-type and sub class? atleast u have differ it into 4 points?
Whats oop mean?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is object and example?
Which is better struts or spring?
How do you achieve runtime polymorphism?
What is the point of oop?
What is the significance of classes in oop?