Пример #1
0
 public DairyProduct(string name, double price, string manufacturerName, Nutrients nutrients, BaseInfoAboutGood bsInfo)
     : base(name, price, manufacturerName, nutrients, bsInfo)
 {
 }
Пример #2
0
 public Product(ProductBuilder builder) : base(builder.GetName(), builder.GetPrice(), builder.GetManufacturerName())
 {
     this.nutrients = builder.GetNutrients();
     this.bsInfo    = builder.GetBsInfo();
 }
Пример #3
0
 public Product(string name, double price, string manufacturerName, Nutrients nutrients, BaseInfoAboutGood bsInfo) : base(name, price, manufacturerName)
 {
     this.nutrients = nutrients;
     this.bsInfo    = bsInfo;
 }
Пример #4
0
 public ProductBuilder SetBsInfo(BaseInfoAboutGood bsInfo)
 {
     this.bsInfo = bsInfo; return(this);
 }