Data Class

This smell occurs when a class contains only fields and possibly getters/setters without any behavior (methods).

Related smells: Broken Modularization

Reference

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


Design Smells

Home

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