24-01-2013, 03:15 PM
INHERITANCE
INHERITANCE1.pptx (Size: 182.8 KB / Downloads: 17)
Inheritance-It is the capability of one class to inherit properties from another class.
Base Class-It is the class whose properties are inherited by another class. It is called super class.
Derived class-It is the class that inherit properties from base class(es) . It is also called Sub Class.
FORMS OF INHERITANCE
Single Inheritance- It is the inheritance hierarchy wherein one derived class inherits from one base class.
Multiple Inheritance-It is the inheritance hierarchy wherein one derived class inherits from multiple base class(es).
Hierarchical Inheritance-It is the inheritance hierarchy wherein multiple subclasses inherits from one base class.
Multilevel Inheritance- It is the inheritance hierarchy wherein subclass act as a base class for other classes.
Hybrid Inheritance-The inheritance hierarchy that reflects any legal combination of other four types of inheritance.