Exemple #1
0
 protected Vegetable(IVegetable vegetable)
 {
     this.Name     = vegetable.Name;
     this.Weight   = vegetable.Weight;
     this.Calories = vegetable.Calories;
 }
Exemple #2
0
        //public string Name { get; set; }
        //public double Weight { get; set; }
        //public Calories Calories { get; set; }

        public CustomVegetable(string name, double weight, Calories calories)
            : base(name, weight, calories)
        {
        }
Exemple #3
0
 protected Vegetable(string name, double weight, Calories calories)
 {
     this.Name     = name;
     this.Weight   = weight;
     this.Calories = calories;
 }