コード例 #1
0
        public static void Main(string[] args)
        {
            Atm atm = new Atm();

            atm.refill(100);
            atm.withdraw(50);
            atm.withdraw(30);
            atm.withdraw(30);
            atm.withdraw(20);
            atm.refill(50);
            atm.refill(50);
            atm.withdraw(50);
            Console.ReadKey();
        }
コード例 #2
0
 public NoCash(Atm atm)
 {
     this.atm = atm;
 }
コード例 #3
0
 public working(Atm atm)
 {
     this.atm = atm;
 }