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 / hemanth

When 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 ?    33 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by variable?

1034


What is destructor in oop?

1025


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1847


Why is object oriented programming so hard?

1075


How do you answer polymorphism?

1054


Is this job good for future? can do this job post grduate student?

2160


How to call a non virtual function in the derived class by using base class pointer

6540


what type of questions

2121


What is destructor example?

1040


Why is destructor used?

1014


What is a null tree?

1133


Why do pointers exist?

1085


Can we define a class within the interface?

1029


Where is pseudocode used?

1095


hi all..i want to know oops concepts clearly can any1 explain??

2122