Type of classes: – In an inheritance, two or more classes can be used. Out of two classes, one class is called base class and other class is called derived class. A base class is called by derived class. Base class never use properties of its derived class, but a derived class use some or all properties of its base class.

In case of three or more level classes, base class is called supper class because it never use any properties of its belonging class. Bellow the supper class and above the last class, all other classes are called base/derived class. It is called base class because does not use properties of its derived class. It is also called derived class because it is properties of its base class. The final class is called pure derived class because it usage only property of its based classes. Structure of base and derived classes inform of inheritance is as fallows.