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
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is solid in oops?
What is polymorphism and its types?
What are the benefits of oop?
What are the 4 main oop principles?
What does sksksk mean in text slang?
What is a class in oop?
What is class encapsulation?
What is abstract class in oops?
write a C++ program for booking using constructor and destructor.
What is the real time example of encapsulation?
write string class as your own class in java without using any built-in function
2. Give the different notations for the class.\
How to improve object oriented design skills?
What is meant by oops concept?