Esempio n. 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);
 }
Esempio n. 2
0
 public Deposit(int userAccountNumber, Screen atmScreen, BankDatabase atmBankDatabase, Keypad atmKeypad, DepositSlot atmDepositSlot)
     : base(userAccountNumber, atmScreen, atmBankDatabase)
 {
     keypad      = atmKeypad;
     depositSlot = atmDepositSlot;
 }