Beispiel #1
0
        public static void TestCars1()
        {
            Console.WriteLine("\nTestCars1");
            Console.WriteLine("----------");
            Car car1 = new Car();

            car1.DescribeCar();
            Console.WriteLine("----------");
            ConvertibleCar car2 = new ConvertibleCar();

            car2.DescribeCar();
            Console.WriteLine("----------");
            Minivan car3 = new Minivan();

            car3.DescribeCar();
            System.Console.WriteLine("----------");
        }