| Inheritance - An Overview | |||||||||||
| What is Inheritance? | Forms of Inheritance | ||||||||||
| Why use Inheritance? | Kinds of Inheritance | ||||||||||
| Home | |||||||||||
| Forms of Inheritance
The inheritance allows us to define subclasses which inherit all properties from their parent class. There are various forms of inheritance. 1. Single Inheritance (Only one super class) 2. Multiple Inheritance (Several super class) 3. Hierarchical Inheritance (One super class and many sub classes) 4. Multi-Level Inheritance (Derived from a derived class) 1. Single Inheritance 2. Multiple Inheritance 3. Hierarchical Inheritance 4. Multi-Level Inheritance |
|||||||||||