Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 pure oop?

1054


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

2089


Why is polymorphism important in oop?

1022


What is overriding in oop?

1002


What is solid in oops?

1057


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

2458


Can a destructor be called directly?

1030


Are polymorphisms mutations?

1114


What is overloading in oops?

1105


What is advantage of inheritance?

1138


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

2108


Is oop better than procedural?

991


Write a program to reverse a string using recursive function?

2297


Is enum a class?

1012


What is the diamond problem in inheritance?

1079