Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Car myNewCar = new Car();

            myNewCar.Make = "Oldsmobile";
            myNewCar.Model = "Cutlas Supreme";
            myNewCar.Color = "Silver";
            myNewCar.Year = 1986;

            //double MarketValueOfCar = determineMarketValue(myNewCar);
            double MarketValueOfCar = myNewCar.determineMarketValue();

            resultLabel.Text = String.Format("{0} - {1} - {2} -{3}", myNewCar.Model, myNewCar.Make, myNewCar.Color, myNewCar.Year.ToString(), marketValueOfCar);
        }