protected void Page_Load(object sender, EventArgs e)
        {
            Car myCar = new Car("Oldsmobile");
            resultLabel.Text = myCar.FormatDetailsForDisplay();

            DateTime d = new DateTime();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Car myCar = new Car("Oldsmobile");

            resultLabel.Text = myCar.FormatDetailsForDisplay();

            DateTime d = new DateTime();
        }
Exemple #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //Car myCar = new Car();
            Car myCar = new Car("Saab", "9.5", 2001, "Grey");

            resultLabel.Text = myCar.FormatDetailsForDisplay();

            DateTime d = new DateTime();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //Car myCar = new Car();
            Car myCar = new Car("Oldsmobile", "Cutlas Supreme", 1985, "Silver");

            resultLabel.Text = myCar.FormatDetailsForDisplay();

            DateTime d = new DateTime();
        }
Exemple #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //Car myCar = new Car();
            Car myCar = new Car("Honda", "Civic", 1999, "Blue");

            resultLabel.Text = myCar.FormatDetailsForDisplay();

            DateTime d = new DateTime();
        }
Exemple #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //Car myCar = new Car();
            Car myCar = new Car("Toyota", "Camry", 2017, "White");

            resultLabel.Text = myCar.FormatDetailsForDisplay();

            DateTime d = new DateTime();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //Car myCar = new Car(); // Car() is the default constructor method
            Car myCar = new Car("Honda", "Civic Type R", 2017, "Championship White");

            resultLabel.Text = myCar.FormatDetailsForDisplay();

            //DateTime d = new DateTime()
        }