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


Please Help Members By Posting Answers For Below Questions

write a programe to calculate the simple intrest and compund intrest using by function overlading

1758


What is solid in oops?

705


What is polymorphism and its types?

691


What are the benefits of oop?

703


What are the 4 main oop principles?

799






What does sksksk mean in text slang?

1688


What is a class in oop?

678


What is class encapsulation?

709


What is abstract class in oops?

675


write a C++ program for booking using constructor and destructor.

2132


What is the real time example of encapsulation?

686


write string class as your own class in java without using any built-in function

2062


2. Give the different notations for the class.\

1670


How to improve object oriented design skills?

656


What is meant by oops concept?

686