Inheritance in OOP
Inheritance is the process by which object of one class acquire the properties of objects of another class. It supports the concept of hierarchical classification. For example, the bird 'robin' is a part of the class flying bird which is a part of the class flying bird which is again a part of the class bird. The principle behind this sort of division is that each derived class shares common characteristics which class from which it is derived as ie. in Fig. 5.
Comments
Post a Comment