Section J.13. Module ATMCaseStudy


J.13. Module ATMCaseStudy

Module ATMCaseStudy (Fig. J.12) simply allows us to start, or "turn on," the ATM and test the implementation of our ATM system model. Module ATMCaseStudy's Main method (lines 47) does nothing more than instantiate a new ATM object named theATM (line 5) and invoke its Run method (line 6) to start the ATM.

Figure J.12. ATMCaseStudy.vb starts the ATM.

 1  ' ATMCaseStudy.vb 2  ' Module for testing the ATM case study. 3  Module ATMCaseStudy Keypad 4     Sub Main() 5        Dim theATM As New ATM() 6        theATM.Run() 7     End Sub ' Main 8  End Module ' ATMCaseStudy 



Visual BasicR 2005 for Programmers. DeitelR Developer Series
Visual Basic 2005 for Programmers (2nd Edition)
ISBN: 013225140X
EAN: 2147483647
Year: 2004
Pages: 435

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net