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
Who invented oop?
what's the basic's in dot net
What is the fundamental idea of oop?
Where is pseudocode used?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
What is use of overloading?
What is oops and why we use oops?
How do you explain polymorphism?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
what are the different types of qualifier in java?
What is the oops and benefits of oops programming?
What is destructor oops?
How many human genes are polymorphic?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is overloading in oop?