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

Why is polymorphism used?

579


What is abstraction in oops with example?

767


What is abstraction in oops?

578


What are the important components of cohesion?

550


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

2322






What is methods in oop?

537


write a program to find 2^n+1 ?

1542


What do you mean by overloading?

576


What is a function in oop?

627


Are polymorphisms mutations?

693


What is a null tree?

625


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1141


What does and I oop mean?

610


What are the three main types of variables?

597


What is class encapsulation?

584