June 2006
Intermediate to advanced
1344 pages
42h 52m
English
Class DepositSlot (Fig. J.5) represents the deposit slot of the ATM. Like the version of class CashDispenser presented here, this version of class DepositSlot merely simulates the functionality of a real hardware deposit slot. DepositSlot has no attributes and only one method—IsDepositEnvelopeReceived (lines 6–8)—that indicates whether a deposit envelope was received.
1 ' DepositSlot.vb 2 ' Represents the deposit slot of the ATM 3 Public Class DepositSlot 4 ' indicates whether envelope was received (always returns true, 5 ' because this is only a software simulation of a real deposit slot) 6 Public Function IsDepositEnvelopeReceived() As Boolean 7 Return ... |
Read now
Unlock full access