Java · Writing classes

Methods that change an object

A bank account is only as safe as the methods that change it, so each one checks the request before it touches the balance.