3 ms·
He means you'd call `increment(25)` to say you've got 25 more, or `employee.suspend()` instead of `employee.setAccess(SUSPENDED); employee.setPay(0); employee.s
by arjie 10y ago
He means you'd call `increment(25)` to say you've got 25 more, or `employee.suspend()` instead of `employee.setAccess(SUSPENDED); employee.setPay(0); employee.setBenefits(NONE);`
- carterehsmith 10y agoIncrement(25) still mutates the value. What is the point here? Point - say you have a database with 300 tables and ~3,000 columns. You do not want to play the game of "hide the method to change the value". That is a big waste of time for everyone involved.