コード例 #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 SetNutrients(Nutrients nutrients)
 {
     this.nutrients = nutrients; return(this);
 }