A E G I M S V

A

add(Item) - Method in class ShoppingCart
When this ShoppingCart is asked to add an Item to itself it updates its count field and then updates its cost field by sending the Item a getCost message.

E

EStore - class EStore.
An EStore object simulates the behavior of a simple on line shopping web site.
EStore() - Constructor for class EStore
 

G

getCost() - Method in class Item
How much does this Item cost?
getCost() - Method in class ShoppingCart
What happens when this ShoppingCart is asked the total cost of the Items it contains.
getCount() - Method in class ShoppingCart
What happens when this ShoppingCart is asked how many Items it contains.

I

Item - class Item.
An Item models an object that might be stocked in a store.
Item(int) - Constructor for class Item
Construct an Item object.

M

main(String[]) - Static method in class EStore
The EStore simulation program begins here when the user issues the command java EStore.

S

ShoppingCart - class ShoppingCart.
A ShoppingCart keeps track of a customer's purchases.
ShoppingCart() - Constructor for class ShoppingCart
Construct a new empty ShoppingCart.

V

visit() - Method in class EStore
Visit this EStore.

A E G I M S V