–public
boolean withdraw( int amount
){
– if ( amount <= balance ) {
– incrementBalance( - amount );
– return true;
– }
– return false;
–}
•Client tests:
–if (! account.withdraw(amount) ) // print if appropriate
–
// else return failure to your client
•Client knows that something happened, but not what happened
–