4 ms·
The convention of getWeight() is bad because it assumes an existence of setWeight(). And get/set methods turn an object into a holder of data.
by yegor256a 12y ago
The convention of getWeight() is bad because it assumes an existence of setWeight(). And get/set methods turn an object into a holder of data.