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 a file,
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:
Fill in the blanks to complete the method.