मराठी

What is Inheritance ? - Computer Applications

Advertisements
Advertisements

प्रश्न

What is inheritance?

टीपा लिहा

उत्तर

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2016-2017 (March) Set 1
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×