Tuesday, 10 September 2013

Inheritance

Introduction:

The inheritance allows sub classes to inherit all properties (variables and methods) of their parent classes. The different forms of inheritance are:
- Single inheritance (only one super class)
- Multiple inheritance (several super classes)
- Hierarchical inheritance (one super class, many sub classes)
- Multi-Level inheritance (derived from a derived class)
- Hybrid inheritance (more than two types)
- Multi-path inheritance (inheritance of some properties from two sources).




No comments:

Post a Comment

Blog Archive