Inheritance in java


Features of object oriented programming:

Inheritance :

                    Generally in our life, we will inherit the characteristics of our parents and grandparents. Likewise in object oriented  programming ,one class will inherit the properties of its parent
class.This feature is called inheritance.
            Let us take an example of how it is implemented in java.Let Manager be the parent class, let FundManager be the subclass, this fundmanager class will inherit some functionality of parent class Manager.

     If subclass wants to inherit the features of parent class,it can be achieved by means of the keyword extends. 

Previous
Next Post »