class CheckingAccount { // instance variables String accountNumber; String accountHolder; int balance; //constructors . . . . // methods . . . . void processDeposit ( int amount ) { balance = balance + amount ; } }
If you have the previous test program in your NotePad buffer,
it would be nice to add the processDeposit()
method
and test it.
The method to process a check is slightly more complicated:
void
.Here is a sketch of the method:
void processCheck( int _____________ ) { int charge; if ( ______________ < 100000 ) charge = _________ else charge = _________ balance = ________ - _________ - _________ ; }