3 ms·
I doubt that's most people unless most people are confused. The whole point of having getters and setters is to abstract away the implementation details of wher
by pvg 10y ago
I doubt that's most people unless most people are confused. The whole point of having getters and setters is to abstract away the implementation details of where the value comes from. Direct access to a data member is easily achieved via direct access to the data member, it doesn't require a method.