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

            heli.Fly();
            heli.Land();
            heli.TakeOff();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var bird       = new Bird("Csirkusz");
            var helicopter = new Helicopter("FeketeRotor");

            bird.TakeOff();
            bird.Fly();
            bird.Land();
            Console.WriteLine();
            helicopter.TakeOff();
            helicopter.Fly();
            helicopter.Land();

            Console.ReadLine();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Helicopter AmbulanceHelicopter = new Helicopter(10, "white", 200);

            AmbulanceHelicopter.Fly();
            AmbulanceHelicopter.Land();
            AmbulanceHelicopter.TakeOff();
            Console.WriteLine();

            Bird blackBird = new Bird("Henry", 5);

            blackBird.Fly();
            blackBird.Land();
            blackBird.TakeOff();
            Console.WriteLine(blackBird.WantChild());
            Console.ReadLine();
        }