J. ATM Case Study Code
J.1 ATM Case Study Implementation
This appendix contains the complete working implementation of the ATM system that we designed in the nine “Software Engineering Case Study” sections in Chapters 1, 3–9 and 11. The implementation comprises 655 lines of C# code. We consider the 11 classes in the order in which we identified them in Section 4.11 (with the exception of Transaction
, which was introduced in Chapter 11 as the base class of classes BalanceInquiry
, Withdrawal
and Deposit
):
• ATM
• Screen
• Keypad
• CashDispenser
• DepositSlot
• Account
• BankDatabase
• Transaction
• BalanceInquiry
• Withdrawal
• Deposit
We apply the guidelines discussed in Section 9.17 and Section 11.9 to code these classes based on how we modeled ...
Get C# for Programmers, Second 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.