public bool DoesToppingExist(Topping topping, bool print) { foreach (var t in ToppingList) { if (t.Type == topping.Type) { if (print) { System.Console.WriteLine("topping: " + t + " already added"); } return(true); } } return(false); }
public void AddTopping(Topping topping) { _toppings.Add(topping); }
public Topping SetTopping(string i) { Topping t = new Topping(i); return(t); }
public abstract void AddTopping(Topping t);
public abstract void RemoveTopping(Topping topping);