public DairyProduct(string name, double price, string manufacturerName, Nutrients nutrients, BaseInfoAboutGood bsInfo) : base(name, price, manufacturerName, nutrients, bsInfo) { }
public Product(ProductBuilder builder) : base(builder.GetName(), builder.GetPrice(), builder.GetManufacturerName()) { this.nutrients = builder.GetNutrients(); this.bsInfo = builder.GetBsInfo(); }
public Product(string name, double price, string manufacturerName, Nutrients nutrients, BaseInfoAboutGood bsInfo) : base(name, price, manufacturerName) { this.nutrients = nutrients; this.bsInfo = bsInfo; }
public ProductBuilder SetNutrients(Nutrients nutrients) { this.nutrients = nutrients; return(this); }