Example #1
0
 public ATM()
 {
     userAuthenticated    = false;
     currentAccountNumber = 0;
     screen        = new Screen();
     keypad        = new Keypad();
     depositSlot   = new DepositSlot();
     bankDatabase  = new BankDatabase();
     cashDispenser = new CashDispenser(0, 0);
 }
Example #2
0
 public WithDrawal(int userAccount, Screen screen, BankDatabase bankDatabase, Keypad keypad, CashDispenser cashDispenser)
     : base(userAccount, screen, bankDatabase)
 {
     CANCELED           = userAccount;
     this.keypad        = keypad;
     this.cashDispenser = cashDispenser;
 }