static void Main(string[] args) { //SpecialCustomers sc = null; ////sc = new SpecialCustomers(); //sc = new TopNCustomers(); //for (int i = 0; i < 10; i++) //{ // Customer obj = new Customer(); // sc.AddCustomer(obj); //} Mustang myMustang = null; myMustang = new MustangGT(); myMustang.Break(); if (myMustang.Stopped == true) { Console.WriteLine("Yeah, we didn't hit the wall!"); } else { Console.WriteLine("Dang, we died!"); } }
static void Main(string[] args) { //CustomerCollection collection = null; //collection = new SpecialCustomers(); //Console.WriteLine("The account rep is " + collection.AccountRep); //for (int i = 0; i < 10; i++) //{ // Customer obj = new Customer(); // collection.AddCustomer(obj); //} //collection = new TopNCustomers(); //Console.WriteLine("The account rep is " + collection.AccountRep); //for (int i = 0; i < 10; i++) //{ // Customer obj = new Customer(); // collection.AddCustomer(obj); //} Car myMustang = null; myMustang = new MustangGT(); myMustang.Break(); if (myMustang.Stopped == true) { Console.WriteLine("Yeah, we didn't hit the wall!"); } else { Console.WriteLine("Dang, we died!"); } }