public void CreateCar()
        {
            Console.WriteLine("Creating a Car of Economy Class");
            engine.Set(100);
            body.Set("Hatchback");
            equipment.Set("Basic");

            Console.WriteLine("Car of Economy Class creation is completed.\r\n");
        }
Beispiel #2
0
        public void CreateCar()
        {
            Console.WriteLine("Creating a Car of Luxury Class");
            engine.Set(350);
            body.Set("Limousine");
            equipment.Set("Full");

            Console.WriteLine("Car of Luxury Class creation is completed.\r\n");
        }