Пример #1
0
        static void Main(string[] args)
        {
            var helicopter = new Helicopter(100, 4);
            var plane      = new Plane(150, 6);

            helicopter.WriteAllProperties();
            Console.WriteLine();
            plane.WriteAllProperties();
        }
Пример #2
0
        static void Main(string[] args)
        {
            var plane = new Plane(100, 4);

            plane.TakeUpper(120);
            plane.TakeLower(100);
            plane.WriteAllProperties();

            var helicopter = new Helicopter(80, 3);

            helicopter.TakeUpper(120);
            helicopter.TakeLower(60);
            helicopter.WriteAllProperties();

            Console.ReadKey();
        }