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