M.1. ATM Case Study Implementation
This appendix contains the complete working implementation of the ATM system that we designed in the Software Engineering Case Study sections found at the ends of Chapters 3–8 and 10. The implementation comprises 670 lines of Java code. We consider the classes in the order in which we identified them in Section 3.10:
ATM
Screen
Keypad
CashDispenser
DepositSlot
Account
BankDatabase
Transaction
BalanceInquiry
Withdrawal
Deposit
We apply the guidelines discussed in Section 8.19 and Section 10.9 to code these classes based on how we modeled them in the UML class diagrams of Figs. 10.21 and 10.22. To develop the bodies of class methods, we refer to the activity diagrams presented in Section 5.11 and the communication and ...
Get Java™ How to Program, Seventh 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.