Beispiel #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();
        }
Beispiel #2
0
 public NoCash(Atm atm)
 {
     this.atm = atm;
 }
Beispiel #3
0
 public working(Atm atm)
 {
     this.atm = atm;
 }