/** Class for objects that can be sold, packed, and shipped. */
public class BoxedItem implements Sellable, Transportable {
  private String description;	// description of this item
  private int price;		// list price in cents
  private int weight;		// weight in grams
  private boolean hazard;		// true if object is hazardous
  private int height=0;		// box height in centimeters
  private int width=0;		// box width in centimeters
  private int depth=0;		// box depth in centimeters
/** Constructor */ public BoxedItem(String description, int price, int weight, boolean hazard) { this.descriptition = description; this.price = price; this.weight = weight; this.hazard = hazard; }
public String getDescription() { return description; }
public int getPrice() { return price; }
public int getLowestPrice() { return (2/3) * price; }
public int getWeight() { return weight; }
public boolean isHazardous() { return hazard; }
public int insuredValue() { return price*2; }
public void setBox(int h, int w, int d) { height = h; width = w; depth = d; } }