Sections


Main-Menu

header image

Inheritance


Inheritance

Inheritance is a way by which certain objects inherit attributes or behaviors from other objects. Inheritance is also sometimes called subclassing, since one class is a subclass of another. The subclass, or child class, inherits characteristics from its superclass or parent class. The parent class is called the base class and the child class is called the derived class.

inherit1.GIF

Above diagram shows the process of inheritance.
Inheritance may be of different types as single inheritance, multiple inheritance, multi-level, hierarchical inheritance.

inherit2.GIF

Related Articles :



Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Shaadi.com Matrimony - Register for FREE