3 ms·
If you make the statically typed field public you lose the ability to change the implementation without breaking the clients. (Getters/setters have the same pro
by jedmeyers 10y ago
If you make the statically typed field public you lose the ability to change the implementation without breaking the clients. (Getters/setters have the same problems, but not as pronounced). And no, you don't always have the ability to recompile everything that's using your code.