Illustrate about Sharing of Structure and Behaviour
One of the reasons for the popularity of object-oriented techniques is that they promote sharing at different levels. Inheritance of both behaviour and data structure allows common structure (base class) to be used in creating many subclasses based on basic property of base class, and develop new classes with fewer effort. Inheritance is one of the major advantages of any object oriented language, since it gives capacity to share basic code.