Example #1
0
        static void Main(string[] args)
        {
            Car car = new Car("BMW", 1994, Color.Blue);

            TuningAtelier.TuneCar(car);
            Console.WriteLine(car.Color);
            Console.ReadKey();
        }
Example #2
0
        static void Main(string[] args)
        {
            var daewo = new Car();

            daewo.Model = "Daewo Lanos";
            daewo.Color = "Yellow";
            daewo.Year  = 2008;

            Console.WriteLine("\t\tTuning atelier!");
            Console.WriteLine("\tBefore tuning:");
            Console.WriteLine("Car model: {0}", daewo.Model);
            Console.WriteLine("Car color: {0}", daewo.Color);
            Console.WriteLine("Car year: {0}", daewo.Year);

            TuningAtelier.TuneCar(daewo);

            Console.WriteLine("\tAfter tuning:");
            Console.WriteLine("Car model: {0}", daewo.Model);
            Console.WriteLine("Car color: {0}", daewo.Color);
            Console.WriteLine("Car year: {0}", daewo.Year);

            Console.ReadKey();
        }