|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Bank
A Bank object simulates the behavior of a simple bank/ATM.
It contains a Terminal object and two BankAccount objects.
Its single public method is open, which opens this Bank
for business, prompting the customer for input.
To create a Bank and open it for business issue the command
java Bank
.
BankAccount
Constructor Summary | |
Bank(String name)
Construct a Bank with the given name. |
Method Summary | |
static void |
main(String[] args)
The Bank simulation program begins here when the user issues the command java Bank . |
void |
open()
Open the Bank for business. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Bank(String name)
name
- the name of the Bank.Method Detail |
public static void main(String[] args)
java Bank
.
args
- the command line arguments (ignored).public void open()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |