Visual Basic 2005 for Programmers (2nd Edition)

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

Категории