|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EStore
An EStore object simulates the behavior of a simple on line shopping web site. It contains a Terminal object to model the customer's browser and a Catalog of Items that may be purchased and then added to the customer's shoppingCart.
Constructor Summary | |
EStore(String storeName,
Terminal browser)
Construct a new EStore. |
Method Summary | |
static void |
main(String[] args)
The EStore simulation program begins here when the user issues the command java EStore
If first command line argument is "-e" instantiate a
Terminal that echoes its input. |
void |
visit()
Visit this EStore. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EStore(String storeName, Terminal browser)
storeName
- the name of the EStorebrowser
- the visitor's Terminal.Method Detail |
public static void main(String[] args)
java EStore
If first command line argument is "-e" instantiate a
Terminal that echoes its input.
The next command line argument (if there is one)
is the name of the EStore.
args
- <-e> public void visit()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |