コード例 #1
0
ファイル: Program.cs プロジェクト: mokarchi/DesignPatterns
        static void Main(string[] args)
        {
            ATM atm = new ATM();

            Console.WriteLine("\n Requested Amount 4600");
            atm.withdraw(4600);
            Console.WriteLine("\n Requested Amount 1900");
            atm.withdraw(1900);
            Console.WriteLine("\n Requested Amount 600");
            atm.withdraw(600);
            Console.Read();
        }
コード例 #2
0
        public static void Run()
        {
            ATM atm = new ATM();

            Console.WriteLine("\n Requested Amount 4600");
            atm.withdraw(4600);
            Console.WriteLine("\n Requested Amount 1900");
            atm.withdraw(1900);
            Console.WriteLine("\n Requested Amount 600");
            atm.withdraw(600);
            Console.Read();
        }