3 ms·
If moving requires a name to be set you are at constructor time, no need for permanently available setters.
by usrusr 9y ago
If moving requires a name to be set you are at constructor time, no need for permanently available setters.
- wvenable 9y agoTwo things with that, you're assuming immutability but even a simple database entity object wouldn't be immutable. And secondly, anything over a handful of values and setting them via a constructor isn't pretty.