//five-parameter constructor public Deposit(int userAccountNumber, Screen atmScreen, BankDatabase atmBankDatabase, Keypad atmKeypad, DepositSlot atmDepositSlot, bool depositStatus) : base(userAccountNumber, atmScreen, atmBankDatabase) { keypad = atmKeypad; depositSlot = atmDepositSlot; bankDatabase = atmBankDatabase; accountNumber = userAccountNumber; processingDeposit = depositStatus; screen = atmScreen; }
public Withdrawal(int userAccountNumber, Screen atmScreen, BankDatabase atmBankDatabase, Keypad atmKeypad, CashDispenser atmCashDispenser, bool withdrawStatus) : base(userAccountNumber, atmScreen, atmBankDatabase) { keypad = atmKeypad; cashDispenser = atmCashDispenser; screen = atmScreen; accountNumber = userAccountNumber; bankDatabase = atmBankDatabase; processingWithdrawal = withdrawStatus; }