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 ofEden = new Garden("Garden of Eden"); ofEden.AddFlower(yellowFlower); ofEden.AddFlower(blueFlower); ofEden.AddTree(purpleTree); ofEden.AddTree(orangeTree); ofEden.GetInfo(); ofEden.Watering(40); ofEden.Watering(70); Console.ReadLine(); }
static void Main(string[] args) { Flower pink = new Flower("pink"); pink.WaterAmount = 8; Flower blue = new Flower("blue"); blue.WaterAmount = 3; Tree green = new Tree("green"); green.WaterAmount = 20; Tree brown = new Tree("brown"); brown.WaterAmount = 5; Garden garden = new Garden(); garden.AddFlower(pink); garden.AddFlower(blue); garden.AddTree(green); garden.AddTree(brown); garden.watering(40); }