package cart; //ItemOfGroup - an item which always has sub-items, // such as itemOfStuffWSizeColor, used to group like items // with varying attributes //author - Lawrence Truett - FluffyCat.com //date - August 11, 2003 - San Diego, CA public class ItemOfGroup extends Item { long[] itemsInGroup; public ItemOfGroup(long keyIn, double priceIn, String descriptionIn, ItemType typeIn, String smallGraphicIn, String largeGraphicIn, long[] itemsInGroupIn) { super(keyIn, priceIn, descriptionIn, typeIn, smallGraphicIn, largeGraphicIn); this.setHasInventory(false); this.setIsCartable(false); this.setItemsInGroup(itemsInGroupIn); } public long[] getItemsInGroup() {return itemsInGroup;} private void setItemsInGroup(long[] itemsInGroupIn) { itemsInGroup = itemsInGroupIn; } public static String getItemClass() {return "Group Item";} }