Пример #1
0
        static void Main(string[] args)
        {
            var car = new Car("Audi", "1990", "blue");

            Console.WriteLine(car);

            TuningAtelier.TuneCar(car);
            Console.WriteLine(car);
        }
Пример #2
0
        static void Main(string[] args)
        {
            var car = new Car()
            {
                Model = "Model111", Color = "Green", Year = "2014"
            };

            Console.WriteLine("Model: {0}, Color: {1}, Year: {2}", car.Model, car.Color, car.Year);
            TuningAtelier.TuneCar(car);
            Console.WriteLine("Model: {0}, Color: {1}, Year: {2}", car.Model, car.Color, car.Year);
            Console.ReadLine();
        }