Wednesday 8 April 2015

Types of Inheritance

The derived class inherits some or all the features of the base class depending on the visibility mode and level of inheritance. Level of inheritance refers to the length of its path from the root. A base class itself might have been derived from other classes in the hierarchy. Inheritance is classified into the following forms.

? Single inheritance
? Multilevel inheritance
? Multiple inheritance
? Hierarchical inheritance
? Hybrid inheritance
? Multipath inheritance


No comments:

Post a Comment