public class BalanceInquiry extends Transaction
| Constructor and Description |
|---|
BalanceInquiry(int accountNumber,
Screen screen,
BankDatabase bankDatabase)
Calls superclass Transaction to initialize the account number, screen and
bank database objects for this transaction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Performs the balance inquiry transaction.
|
getAccountNumber, getBankDatabase, getScreenpublic BalanceInquiry(int accountNumber,
Screen screen,
BankDatabase bankDatabase)
accountNumber - the user-specified account number for this transactionscreen - a reference to the output screenbankDatabase - a reference to the bank database of user account objectspublic void execute()
execute in class Transaction