Parallel Inheritance Hierarchies

This smell occurs when introducing a subclass of one class leads to creation of another subclass of another class. It is a special case of shotgun surgery.


M. Fowler, “Refactoring: Improving the Design of Existing Code”. Addison-Wesley, 1999.

Design Smells


All rights reserved (c) Tushar Sharma 2017-23.