static void Main(string[] args) { Garden myGarden = new Garden(); Flower flower1 = new Flower("yellow"); myGarden.Add(flower1); Flower flower2 = new Flower("blue"); myGarden.Add(flower2); Tree tree1 = new Tree("purple"); myGarden.Add(tree1); Tree tree2 = new Tree("orange"); myGarden.Add(tree2); myGarden.ThirstyChecker(); Console.WriteLine(); myGarden.Watering(40); myGarden.ThirstyChecker(); Console.WriteLine(); myGarden.Watering(70); myGarden.ThirstyChecker(); Console.ReadLine(); }
static void Main(string[] args) { Garden garden = new Garden(); Flowers flower0 = new Flowers("yellow"); garden.AddPlant(flower0); Flowers flower1 = new Flowers("blue"); garden.AddPlant(flower1); Tree tree0 = new Tree("purple"); garden.AddPlant(tree0); Tree tree1 = new Tree("orange"); garden.AddPlant(tree1); garden.CheckStatus(); garden.Watering(40); garden.CheckStatus(); garden.Watering(70); garden.CheckStatus(); Console.ReadLine(); }