Пример #1
0
 protected Product(string name, BaseUnit measure, bool isVegetarian, FoodType type, ShoppingUnit unit, decimal price)
 {
     this.Name = name;
     this.BaseUnit = measure;
     this.IsVegetarian = isVegetarian;
     this.ShoppingUnit = unit;
     this.PricePerShoppingUnit = price;
     this.FoodType = type;
 }
 protected PackagedFood(string name, BaseUnit measure, bool isVegetarian, FoodType type, ShoppingUnit unit, decimal price)
     : base(name, measure, isVegetarian, type, unit, price)
 {
 }
Пример #3
0
 public Dairy(string name, ShoppingUnit unit, decimal price)
     : base(name, BaseUnit.grams, false, FoodType.Dairy, unit, price)
 {
 }