コード例 #1
0
 public Brand(string name, Strength strength, HeatTolerance heatTolerance, float smokingTime, float price)
 {
     this.name          = name;
     this.strength      = strength;
     this.heatTolerance = heatTolerance;
     this.smokingTime   = smokingTime;
     this.price         = price;
 }
コード例 #2
0
 public Tobacco(string brandName, Strength brandStrength, HeatTolerance brandHeatTolerance, float brandSmokingTime, float brandPrice, Flavour flavour)
 {
     this.brand   = new Brand(brandName, brandStrength, brandHeatTolerance, brandSmokingTime, brandPrice);
     this.flavour = flavour;
 }