示例#1
0
文件: Pizza.cs 项目: marinovdev/C-OOP
 public void AddTopping(Topping topping)
 {
     ToppingsList.Add(topping);
 }
 protected virtual void AddTopping(decimal p, int i, string n, ItemType t)
 {
     ToppingsList.Add(new Topping(this, p, i, n, t));
 }
 protected virtual void AddTopping(decimal p, int i, APizzaComponent apc)
 {
     ToppingsList.Add(new Topping(this, p, i, apc));
 }
 protected virtual void AddTopping(string type, decimal price)
 {
     ToppingsList.Add(new Topping(type, price));
 }