Пример #1
0
        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();
        }
Пример #2
0
        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";
        }