示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Toy"/> class.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="productArticle">The product article.</param>
 /// <param name="weight">The weight.</param>
 /// <param name="guaranteePeriod">The guarantee period.</param>
 /// <param name="color">The color.</param>
 public Toy(string name, string productArticle, double weight, DateTime guaranteePeriod, ToyColor color)
     : base(name, productArticle, weight)
 {
     this.GuaranteePeriod = guaranteePeriod;
     this.ToyColor        = color;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KinderSurprise"/> class.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="productArticle">The product article.</param>
 /// <param name="weight">The weight.</param>
 /// <param name="guaranteePeriod">The guarantee period.</param>
 /// <param name="toyColor">Color of the toy.</param>
 /// <param name="sugarContent">Content of the sugar.</param>
 public KinderSurprise(string name, string productArticle, double weight, DateTime guaranteePeriod, ToyColor toyColor, double sugarContent)
     : base(name, productArticle, weight)
 {
     this.GuaranteePeriod = guaranteePeriod;
     this.ToyColor        = toyColor;
     this.SugarContent    = sugarContent;
 }