What are the advantages of inheritance?

Showing Answers 1 - 6 of 6 Answers


  • Jan 20th, 2006

Inheritance offers the following advantages --

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

  Was this answer useful?  Yes

ganesh sharma

  • Oct 11th, 2011

Inheritance allows you to propagate a classes' properties and methods into a child class which can then be extended to provide additional functionality. Its main advantage is code reuse, and the ability to extend black box objects about which you have little information, providing for supposedly improved modularity.

  Was this answer useful?  Yes


  • Apr 10th, 2012

Describe the use of public, private and protected access specifies.

  Was this answer useful?  Yes


  • Sep 23rd, 2012

1) Inheritance is the concept where the child class can concentrate on new features that it want. because all the basic features it will get it from its parent class.

2) It is about re-usability of features.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account

Send   Reset


Related Answered Questions


Related Open Questions