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


Please Help Members By Posting Answers For Below Questions

Who invented oop?

645


what's the basic's in dot net

1732


What is the fundamental idea of oop?

629


Where is pseudocode used?

558


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

2141






What is use of overloading?

602


What is oops and why we use oops?

569


How do you explain polymorphism?

581


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6135


what are the different types of qualifier in java?

1833


What is the oops and benefits of oops programming?

547


What is destructor oops?

613


How many human genes are polymorphic?

565


i got a backdoor offer in process global,Bangalore..Can i work with it?

2319


What is overloading in oop?

568