public APizza(Size size, Crust crust) { ToppingList = new List <Topping>(); InitializeToppings(); FactoryMethod(size, crust); }
private void FactoryMethod(Size size, Crust crust) { SetCrust(crust); SetSize(size); AddDefaultToppings(); }
protected virtual void AddCrust(Crust crust) { }
public bool SetCrust(Crust crust) { PizzaCrust = crust; return(true); }
public MeatPizza(Size size, Crust crust) : base(size, crust) { }
public APizzaModel(string name, Size size, Crust crust) { Name = name; Size = size; Crust = crust; }
private void Factory(Crust crust, Size size, List <Topping> toppings) { AddCrust(crust); }
/// <summary> /// /// </summary> public abstract void AddCrust(Crust crust = null);
public APizza(Size size, Crust crust) { FactoryMethod(size, crust); }
protected APizza(Crust crust, Size size, List <Topping> toppings) { }
public ATruePizza(string c, string s) { Crust = new Crust(c); Size = new Size(s); }
public abstract List <AComponent> GetComponents(Crust c, Size s, List <Toppings> t);
public abstract void AddCrust(Crust c);
/// <summary> /// /// </summary> protected void AddCrust(string crustType, double cost) { ThisCrust = new Crust(crustType, cost); }
public virtual void AddCrust(Crust crust) { }
// private List<ToppingType> public VeggiePizza(Size size, Crust crust) : base(size, crust) { }
protected APizzaModel(Crust crust, Size size) { AddCrust(crust); AddSize(size); AddToppings(); }
public virtual void AddCrust() { Crust = new Crust(); }
public CustomPizza(Size size, Crust crust) : base(size, crust) { }