Switch Statement

This smell occurs when switch statements that switches on type codes are spread across the software system instead of exploiting polymorphism.

Related smells: Unexploited Encapsulation Missing Hierarchy Type Queries


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

Design Smells


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