English

What is Inheritance ? - Computer Applications

Advertisements
Advertisements

Question

What is inheritance?

Short Note

Solution

Inheritance in java is a mechanism in which one object acquires all the. properties and behaviors of parent object.
The idea behind inheritance in java is that you can create new classes that are built upon existing classes. When you inherit from an existing class, you can reuse methods and fields of parent class, and you can add new methods and fields also.

shaalaa.com
Objects as Instances of a Class
  Is there an error in this question or solution?
2016-2017 (March) Set 1
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×