FileDocCategorySizeDatePackage
ShoppingCartItem.javaAPI DocExample1235Tue Dec 12 18:59:40 GMT 2000cart

ShoppingCartItem

public class ShoppingCartItem extends Object

Fields Summary
Object
item
int
quantity
Constructors Summary
public ShoppingCartItem(Object anItem)

        item = anItem;
        quantity = 1;
    
Methods Summary
public voiddecrementQuantity()

        quantity--;
    
public java.lang.ObjectgetItem()

        return item;
    
public intgetQuantity()

        return quantity;
    
public voidincrementQuantity()

        quantity++;