Scala, Design Patterns, Programming, Delegation, Coding.
of distinct types, and has too many unrelated methods. Due to the comprehensibility and extensibility problems that it has, this god object is an example of an anti-pattern and a code smell. This situation is exemplified with the following code example. case class Location(x: Int, y: Int) abstract