Skip to content

Glossary: Software Design Patterns in C++

God object

Also written: god function, god class

One class (or function) that does far too much, like a `Shop` with 40 functions for pricing, stock and email. Split it by reason to change.

Where the book teaches it

Related terms

Single responsibility principleAnti-pattern