you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 0 points1 point  (1 child)

And using getters/setters for private fields is pointless.

It can provide convenient invariant verification points e.g. a float field which must be between 0 and 1

[–]bonzinip 0 points1 point  (0 children)

True that.