public new void GetDetails() { base.GetDetails(); Console.WriteLine("enter 1 - fruit ,2 -Idle :"); int choise = int.Parse(Console.ReadLine()); if (choise == 1) { KindTree = EnumKindTree.fruit; } else { KindTree = EnumKindTree.Idle; } }
public Tree(string name, EnumSeason season, int amoungWaterNeded, DateTime datePlanting, bool elked, EnumKindTree kindTree) : base(name, season, amoungWaterNeded, datePlanting, elked) { KindTree = kindTree; }