•Behavior: like RegularAccount,
but can write checks too. Checks cost money.
•Design
–inherit from BankAccount (not
from RegularAccount!)
–write empty newMonth method
–write honorCheck method
•public
int honorCheck( int amount )
•{
• incrementBalance( - checkFee );
• return withdraw( amount );
•}