O'Reilly logo

Java™ for Programmers: Deitel by Harvey M. Deitel - Deitel & Associates, Inc., Paul J. Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

H. ATM Case Study Code

H.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 38 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.9:

ATM

Screen

Keypad

CashDispenser

DepositSlot

Account

BankDatabase

Transaction

BalanceInquiry

Withdrawal

Deposit

We apply the guidelines discussed in Section 8.18 and Section 10.8 to code these classes based on how we modeled them in the UML class diagrams of Figs. 10.19 and 10.20. To develop the bodies of class methods, we refer to the activity diagrams ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required