Lecture 20
4
To print or not to print?
•Good first idea – but …
–in banking system, i/o uses the ATM, but here atm.println( ) fails because BankAccount object doesn’t know about ATM (and shouldn’t)
•In general, printing is a bad idea
•Better idea: tell someone,                              not necessarily the user