Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Car myCar = new Car();
            myCar.Make = "BMW";
            myCar.Model = "330Ci";
            myCar.Color = "Black";
            myCar.Year = 2008;

            Console.WriteLine(printCar(myCar));
            Console.WriteLine("Wert des Fahrzeugs: "+ determineValue(myCar));
            
            Console.ReadLine();

            Car mySecondCar = new Car("Porsche", "Cayman", 2011, "Racing Red");
            Console.WriteLine(printCar(mySecondCar));
            
            Console.WriteLine("Wert des Fahrzeugs: {0:C}", mySecondCar.DetermineCarValue());

            Console.ReadLine();
        }