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