Lecture 16
16
Here we need a cast
•146 process…ForAccount( BankAccount acct )
•
•165 else if ( trans.startsWith("ca" ) ||
•166 trans.startsWith("ch" ) ) {
•167   int amount = atm.readInt
•         ( " amount of check: " );
•168   atm.println(" cashed check for "
•169     ((CA)acct).honorCheck(amount ));
•170 }
•Note use of || (or).  Use && for and.
•“c” is ambiguous since we can close account
First use of || in the course.
Last bullet repeats a point from an earlier slide about changing the API.