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 are the advantages of inheritance?

Answer Posted / shiavni

inheritance is a process by which object of one class
acquire the properties from the object of another class.
the major advantage of inheritance is reusability which
means that we can add additional feauters into an existing
class without modifying it. this is possible by deriving a
new class from an existing one. i.e. creating new class
called derived class from an existing or created earlier
class called base class. the derived class will have the
combined features of both the classes.

Is This Answer Correct ?    56 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program to find 2 power of a 5digit number with out using big int and exponent ?

2323


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

2140


Can you inherit a private class?

1058


What do you mean by variable?

975


What is destructor oops?

1035


What is encapsulation with example?

1024


What is polymorphism what are the different types of polymorphism?

948


What is an example of genetic polymorphism?

1117


What is overriding vs overloading?

1005


How long to learn object oriented programming?

1029


What is the real time example of inheritance?

1080


What is an advantage of polymorphism?

1030


Why polymorphism is used in oops?

994


Can we create object of interface?

1064


How do you use inheritance in unity?

1025