public class MainC implements MenuItemIntf { private String desc; private int id; private float price; private float cost; private int available; public MainC(int id, String desc, float price, float cost, int q) { this.id=id; this.desc=desc; this.price=price; this.cost=cost; 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 + " Remain:"+this.available; } }