Wednesday 4 May 2016

Inheritence

By,
Sachin

Inheritance in java is a working in which one object acquires all the properties and behaviours of parent object. Different kinds of objects often have a certain value in Object-oriented programming allows classes to inherit commonly used state and behaviour from other classes. In the Java programming language, each class is allowed to have direct superclass. Also each superclass has the potential for an unlimited number of subclasses.

The idea behind inheritance in java is that you can create new class or classes that are built upon existing classes. When you inherited from an existing class, you can use methods and fields also re-use these methods and fields of parent class, and you can add new methods and fields also.
To Read More....Click here

No comments:

Post a Comment