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 |
Preface
Index
Introduction to Computers, the Internet and Visual C#
Introduction to the Visual C# 2005 Express Edition IDE
Introduction to C# Applications
Introduction to Classes and Objects
Control Statements: Part 1
Control Statements: Part 2
Methods: A Deeper Look
Arrays
Classes and Objects: A Deeper Look
Object-Oriented Programming: Inheritance
Polymorphism, Interfaces & Operator Overloading
Exception Handling
Graphical User Interface Concepts: Part 1
Graphical User Interface Concepts: Part 2
Multithreading
Strings, Characters and Regular Expressions
Graphics and Multimedia
Files and Streams
Extensible Markup Language (XML)
Database, SQL and ADO.NET
ASP.NET 2.0, Web Forms and Web Controls
Web Services
Networking: Streams-Based Sockets and Datagrams
Searching and Sorting
Data Structures
Generics
Collections
Appendix A. Operator Precedence Chart
Appendix B. Number Systems
Appendix C. Using the Visual Studio 2005 Debugger
Appendix D. ASCII Character Set
Appendix E. Unicode®
Appendix F. Introduction to XHTML: Part 1
Appendix G. Introduction to XHTML: Part 2
Appendix H. HTML/XHTML Special Characters
Appendix I. HTML/XHTML Colors
Appendix J. ATM Case Study Code
Appendix K. UML 2: Additional Diagram Types
Appendix L. Simple Types
Index