public class Deposit extends Transaction
| Constructor and Description |
|---|
Deposit(int accountNumber,
Screen screen,
BankDatabase bankDatabase,
Keypad keypad,
DepositSlot depositSlot)
Calls superclass Transaction to initialize the account number, screen and
bank database objects for this transaction and then sets the keypad and
cash dispenser objects to the values from the parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Performs the deposit transaction.
|
getAccountNumber, getBankDatabase, getScreenpublic Deposit(int accountNumber,
Screen screen,
BankDatabase bankDatabase,
Keypad keypad,
DepositSlot depositSlot)
accountNumber - the user-specified account number for this transactionscreen - a reference to the output screenbankDatabase - a reference to the bank database of user account objectskeypad - a reference to the the keypad for the deposit amountdepositSlot - a reference to the deposit slot for the depositpublic void execute()
execute in class Transaction