4 ms·
Mostly just convention, but it's also a more flexible pattern. A public instance variable cannot have public reads, but private writes for instance. There is a
by lunias 7y ago
Mostly just convention, but it's also a more flexible pattern. A public instance variable cannot have public reads, but private writes for instance.
There is also the case of derived properties. e.g.
LocalDateTime ranAt
LocalDateTime finishedAt
getRuntime() { ... }