Tuesday, 10 September 2013

Inheritance Overview

A type (called a subclass or derived type) can inherit the characteristics of another type(s) (called a super class or base type)

      – The term subclass is equivalent to derived type. A derived type acts just like the base type, except for            an explicit list of:
1. Specializations
     – Change implementations without changing the base class interface.
     – Most useful when combined with dynamic binding.
2. Generalizations/Extensions
    – Add new operations or data to derived classes.




No comments:

Post a Comment

Blog Archive