News for hackers. Stuff that matters.
Re:A Case for Properties: Programming Language Design by sorokod on Sunday November 15, 2020 @02:52PM (#25104169)
Getters and setters for private fields provide additional flexibility not afforded by the fields themselves. Examples from the article include different visibility for Getters and setters, validation, and opportunity to execute additional code.

There are no comments on this comment yet.