Step 1.7 Simplifying object classes with inheritance

1
Review the concept of inheritance
2 Apply the bottom up strategy
  • Fully define all classes
  • Identify identical attributes and operations among classes
  • Promote common attributes and operations to a super-class
  • Create subclasses with unique sets of attributes and operations.

Inheritance - bottom up

OR  
3 Apply the top down strategy
  • Identify super classes. That is, identify attributes and operations that apply to the general case
  • Further refine the super-class into two or more sub-classes with unique sets of attributes and operations.

Inheritance - top down