public class Salad implements MenuItemIntf { private String desc; private int id; private float price; private float cost; private String dressing; private int available; public Salad(int id, String desc, float price, float cost, String dressing, int q) { this.id=id; this.desc=desc; this.price=price; this.cost=cost; this.dressing=dressing; this.available=q; } @Override public int getId() { return this.id; } @Override public String getDescription() { return this.desc; } @Override public float getPrice() { return this.price; } @Override public float getCost() { return this.cost; } @Override public int getType() { return 1; } @Override public int getCount() { return this.available; } @Override public int changeCount(int changeBy) { this.available += changeBy; return this.available; } @Override public String toString() { return this.desc + " with " + this.dressing + " Remain:"+this.available; } }