34.4 ATM Case Study Implementation

This section contains the complete implementation of the ATM system. We consider the classes in the order in which we identified them in Section 33.3ATM, Screen, Keypad, CashDispenser, DepositSlot, Account, BankDatabase, Transaction, BalanceInquiry, Withdrawal and Deposit.

We apply the guidelines from Sections 34.234.3 to code these classes based on their UML class diagrams of Figs. 34.9 and 34.10. To develop the bodies of methods, we refer to the activity diagrams in Section 33.5 and the communication and sequence diagrams presented in Section 33.7. Our ATM design does not specify all the program logic and may not specify all the attributes and operations required to complete the ATM implementation. This ...

Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.