J.13. Class ATMCaseStudy
Class ATMCaseStudy (Fig. J.12) simply allows us to start, or "turn on," the ATM and test the implementation of our ATM system model. Class ATMCaseStudy's Main method (lines 610) simply instantiates a new ATM object named theATM (line 8) and invokes its Run method (line 9) to start the ATM.
Figure J.12. Class ATMCaseStudy starts the ATM.
1 // ATMCaseStudy.cs 2 // Application for testing the ATM case study. 3 public class ATMCaseStudy 4 { 5 // Main method is the application's entry point 6 public static void Main( string[] args ) 7 { 8 ATM theATM = new ATM(); 9 theATM.Run(); 10 } // end method Main 11 } // end class ATMCaseStudy |