3 ms·
one good reason would be because setters and getters are way easier to mock out than direct access to member variable And we all want to have code tested , don'
by cunac 15y ago
one good reason would be because setters and getters are way easier to mock out than direct access to member variable
And we all want to have code tested , don't we ? :-)
- dextorious 15y agoNo, I most certainly don't.