Home
Interfaces and classes overview
The application contains the following classes and interfaces:
![]()
Bank interface-This defines common operations a bank would perform, and typically includes customer, account, and transaction related services.
![]()
TransactionType interface-This defines the kind of transactions the bank allows.
![]()
ITSOBank class-This is an implementation of the Bank interface.
![]()
Account class-This is the encapsulation of a bank account. It logs all transactions performed on it for logging and querying purposes.
![]()
Customer class-This is the encapsulation of a client of bank, an account holder. A customer can have one or more accounts.
![]()
Transaction class-This is an abstract supertype of all transactions. A transaction is a single operation that will be performed on an account. In the example only two transaction types exist: Debit and Credit.
![]()
Debit class-This is one of the two existing concrete subtypes of the Transaction class. This transaction results in an account being debited by the amount indicated.
![]()
Credit class-This is the other concrete subtype of Transaction class. It results in an account being credited by the amount indicated.
![]()
BankClient class-This is the executable class of the ITSO Bank application. It creates instances of ITSOBank, Customer, Account classes, and performs some transactions on the accounts.
![]()
All exception classes in the package itso.rad75.bank.exception-These are the implemented exceptions that can occur in the ITSO Bank application. ITSOBankException is the supertype of all ITSO Bank application exceptions.
ibm.com/redbooks