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


Please Help Members By Posting Answers For Below Questions

What is an interface in oop?

595


Can destructor be overloaded?

601


What is polymorphism in oops?

560


Why polymorphism is used in oops?

585


What does it mean when someone says I oop?

587






Get me a number puzzle game-program

1694


What is the use of oops?

625


Why do we need polymorphism in c#?

690


What is difference between inheritance and polymorphism?

573


What is encapsulation in simple terms?

541


program for insertion ,deletion,sorting in double link list

2283


What are the 3 principles of oop?

619


What is a function in oop?

633


What is multilevel inheritance?

727


Which method cannot be overridden?

584