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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Plese get me a perfect C++ program for railway/airway reservation with all details.

3842


State what is encapsulation and friend function?

1197


What is this pointer in oop?

1011


Can destructor be overloaded?

983


What do you mean by variable?

980


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2558


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1877


explain sub-type and sub class? atleast u have differ it into 4 points?

2270


Whats oop mean?

993


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

2800


What is object and example?

1129


Which is better struts or spring?

1000


How do you achieve runtime polymorphism?

1008


What is the point of oop?

1115


What is the significance of classes in oop?

1072