ConstructiCat Logo
CodeBust.
Browse section ▾

Parallel Inheritance Hierarchies.

Whenever you create a subclass for a class, you find yourself needing to create a subclass for another class.

##Signs and Symptoms

Whenever you create a subclass for a class, you find yourself needing to create a subclass for another class.

##Reasons for the Problem

All was well as long as the hierarchy stayed small. But with new classes being added, making changes has become harder and harder.

##Payoff

  • Reduces code duplication.

  • Can improve organization of code.