public Size(AStore store, decimal p, int i, string n, ItemType t) { Store = store; Price = p; Inventory = i; PizzaType = new APizzaComponent(n, t); }
public Size(AStore store, decimal p, int i, APizzaComponent apc) { Store = store; Price = p; Inventory = i; PizzaType = apc; }
public Crust(AStore store, decimal p, int i, APizzaComponent apc) { CheeseStuffed = false; StuffedPrice = 1.50m; Store = store; Price = p; Inventory = i; PizzaType = apc; }
public Crust(AStore store, decimal p, int i, string n, ItemType t) { CheeseStuffed = false; StuffedPrice = 1.50m; Store = store; Price = p; Inventory = i; PizzaType = new APizzaComponent(n, t); }
protected virtual void AddCrust(decimal p, int i, APizzaComponent apc) { CrustList.Add(new Crust(this, p, i, apc)); }
protected virtual void AddSize(decimal p, int i, APizzaComponent apc) { SizeList.Add(new Size(this, p, i, apc)); }
protected virtual void AddTopping(decimal p, int i, APizzaComponent apc) { ToppingsList.Add(new Topping(this, p, i, apc)); }