Exemple #1
0
        static void Main(string[] args)
        {
            Car myCar = new Car();

            myCar.Make  = "Oldsmobile";
            myCar.Model = "Cutlas Supreme";
            myCar.Year  = 1985;
            myCar.Color = "Silver";

            Console.WriteLine("{0} {1} {2} {3}",
                              myCar.Make,
                              myCar.Model,
                              myCar.Year,
                              myCar.Color);

            // decimal value = DetermineMv(myCar);
            // Console.WriteLine("{0:C}", value);
            Console.WriteLine("{0:C}", myCar.DetermineMv());

            Console.ReadLine();
        }