public Week02() { InitializeComponent(); c1 = new Coach(); c1.FirstName = "Julien"; c1.LastName = "Esposito"; //c2 = new Coach(c1); c2 = c1; SportTeam t = new SportTeam(); SportTeam_Football tf = new SportTeam_Football(); SportTeam_Tennis tt = new SportTeam_Tennis(); label1.Text = t.ShowClassName(); }
/// <summary> /// The main entry point for the application. /// </summary> //[STAThread] static void Main() { Coach c1 = new Coach(); Coach c2 = new Coach(c1); c2 = c1; // everything about arrays is going to // be dropped in the method below: PlaceHolderArrays.ExampleArrays(); //Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new Week02()); PlaceHolderOverrideVirtual.Unit_Test(); Console.ReadLine(); }
public Week02() { InitializeComponent(); c1 = new Coach(); c2 = new Coach(); c2.FirstName = "Jordan"; c2.LastName = "Gross"; c1.FirstName = "Julien"; c1.LastName = "Esposito"; football = new SportTeam(); tennis = new SportTeam(); tennis.Address = " 1234 Main St, Escondido, CA 92026"; tennis.Coach = c2; tennis.contactInfo = "760-555-2222"; football.Address = "311, Clementine Street, Oceanside, CA 92054"; football.Coach = c1; football.contactInfo = "760-555-0153"; }
/// <summary> /// This is the Copy Constructor /// </summary> public Coach(Coach rhs) { m_FirstName = rhs.m_FirstName; m_LastName = rhs.m_LastName; }