ยง Setters

13 Apr 2015 | Anton Kril Tweet

Setters allow object modification after instantiation leading to temporal coupling and inconsistent state bugs.

Setters should be discouraged. Objects should receive their state during instantiation.