Exemplo n.º 1
0
 protected Vegetable(IVegetable vegetable)
 {
     this.Name     = vegetable.Name;
     this.Weight   = vegetable.Weight;
     this.Calories = vegetable.Calories;
 }
Exemplo n.º 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)
        {
        }
Exemplo n.º 3
0
 protected Vegetable(string name, double weight, Calories calories)
 {
     this.Name     = name;
     this.Weight   = weight;
     this.Calories = calories;
 }