God Class

The God class smell occurs when a huge class which is surrounded by many data classes acts as a controller (i.e. takes most of the decisions and monopolises the functionality offered by the software). The class defines many data members and methods and exhibits low cohesion.

Related smells: Insufficient Modularization The Blob Large Class Too Large Packages/Subsystems

Reference

A. J. Riel, “Object-Oriented Design Heuristics”. Addison-Wesley, 1996.


Design Smells

Home

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