Example #1
0
        static void Main(string[] args)
        {
            // Instance of the Car class
            // Also called an object
            Car myNewCar = new Car();

            // Each of the properties of the Car class
            // Instance property Make is set to the value "Oldsmobile"
            myNewCar.Make  = "Oldsmobile";
            myNewCar.Model = "Cutlas Supreme";
            myNewCar.Year  = 1986;
            myNewCar.Color = "Silver";

            //Console.WriteLine("{0} - {1} - {2}", myNewCar.Make, myNewCar.Model, myNewCar.Color);

            //determineMarketValue(myNewCar);

            double myValue = myNewCar.DeterminMarketValue();
        }