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

Inheritance offers the following advantages --

Developement model closer to real life object model with
hierarchical relationships
Reusability -- facility to use public methods of base class
without rewriting the same
Extensibility -- extending the base class logic as per
business logic of the derived class
Data hiding -- base class can decide to keep some data
private so that it cannot be altered by the derived class

Is This Answer Correct ?    32 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the benefit of oop?

1000


Why is encapsulation used?

949


Which is not an object oriented programming language?

941


What is stream in oop?

1247


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1926


What is polymorphism in oop example?

962


Can you explain polymorphism?

1048


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4679


What are benefits of oop?

1084


What is meant by multiple inheritance?

1184


write knight tour problem which is present in datastructure

2599


What is inheritance in oop?

985


What are main features of oop?

1083


Where You Can Use Interface in your Project

1837


Why is there no multiple inheritance?

956