static void Main(string[] args) { Garden garden = new Garden(); garden.Info(); Console.WriteLine(); garden.WaterTheGarden(40); garden.Info(); Console.WriteLine(); garden.WaterTheGarden(70); garden.Info(); }
static void Main(string[] args) { Flower yellowFlower = new Flower("yellow"); Flower blueFlower = new Flower("blue"); Tree purpleTree = new Tree("purple"); Tree orangeTree = new Tree("orange"); Garden garden = new Garden(); garden.Add(yellowFlower); garden.Add(blueFlower); garden.Add(purpleTree); garden.Add(orangeTree); garden.Status(); garden.Water(40); garden.Water(70); }