Re:Ask HN: Why do you make class members private?
by ajoseps on Monday July 25, 2022 @02:21PM
(#32228679)
To enforce a public API. I separate it so that callers don't accidentally muck up the workings of the class, and it simplifies how a class can be accessed and mutated
[ Parent
| on HN ]
There are no comments on this comment yet.