Esempio n. 1
0
        static void Main(string[] args)
        {
            Garden Eden = new Garden();

            Eden.AddPlant(new Flower("yellow"));
            Eden.AddPlant(new Flower("blue"));
            Eden.AddPlant(new Tree("purple"));
            Eden.AddPlant(new Tree("orange"));
            Eden.ShowGarden();

            Eden.Irrigation(40);
            Eden.ShowGarden();

            Eden.Irrigation(70);
            Eden.ShowGarden();

            Console.ReadLine();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Garden MyGarden = new Garden("My Garden");

            MyGarden.AddPlant(new Flower("Yellow flower"));
            MyGarden.AddPlant(new Flower("Blue flower"));
            MyGarden.AddPlant(new Tree("Purple tree"));
            MyGarden.AddPlant(new Tree("Orange tree"));

            MyGarden.Show();
            Console.WriteLine();

            MyGarden.Watering(40);
            Console.WriteLine();

            //MyGarden.Watering(75);
            //MyGarden.Show();

            Console.ReadLine();
        }