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, 39 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.