What is multiple inheritance? Give Example
Answer Posted / shree
class one
{
int a;
Public void Add();
}
Class Two
{ int b;
Public void Sub();
}
class Three:class one , class two
{
int c;
Public void Mul();
}
In this last class we inherited first two class that is more than one base class so mulptiple inheritance.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is pure oop?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Why is polymorphism important in oop?
What is overriding in oop?
What is solid in oops?
write string class as your own class in java without using any built-in function
Can a destructor be called directly?
Are polymorphisms mutations?
What is overloading in oops?
What is advantage of inheritance?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Is oop better than procedural?
Write a program to reverse a string using recursive function?
Is enum a class?
What is the diamond problem in inheritance?