Ejemplo n.º 1
0
 public ATM()
 {
     userAuthenticated    = false;
     currentAccountNumber = 0;
     screen        = new Screen();
     keypad        = new Keypad();
     cashDispenser = new CashDispenser();
     depositSlot   = new DepositSlot();
     bankDatabase  = new BankDatabase();
 }
Ejemplo n.º 2
0
 public Withdrawal(int userAccountNumber, Screen atmScreen, BankDatabase atmBankDatabase, Keypad atmKeypad, CashDispenser atmCashDispenser)
     : base(userAccountNumber, atmScreen, atmBankDatabase)
 {
     keypad        = atmKeypad;
     cashDispenser = atmCashDispenser;
 }