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 4–7) 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
				

Get Visual Basic 2005 for Programmers: Deitel Developer Series, 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.