Java Cart .

Java Cart ItemOfStuff java

package cart;

//ItemOfStuff - an item which has inventory
//author - Lawrence Truett - FluffyCat.com
//date - July 18, 2003 - San Diego, CA
public class ItemOfStuff extends Item {
    public ItemOfStuff(long keyIn, 
                       double priceIn, 
                       String descriptionIn,
                       ItemType typeIn, 
                       String smallGraphicIn, 
                       String largeGraphicIn) {
        super(keyIn, 
              priceIn, 
              descriptionIn, 
              typeIn, 
              smallGraphicIn, 
              largeGraphicIn);
        this.setHasInventory(true);
    }
    
    public static String getItemClass() {
        return "Stuff Item";
    }
}
To download source right-click here and "Save As...".
Comments
Sign in to be the first to comment on Java Cart ItemOfStuff java.