Пример #1
0
        public void AddTeam()
        {
            Team soccerTeam = new SoccerTeam();

            soccerTeam.RegisterData();
            Teams.Add(soccerTeam);
        }
Пример #2
0
        public SoccerChampionship()
        {
            Teams = new List <Team>();
            Team soccerTeam = new SoccerTeam();

            soccerTeam.TeamName  = "Real Madrid";
            soccerTeam.Coach     = "Zidane";
            soccerTeam.President = "Florentino";
            Teams.Add(soccerTeam);
        }
Пример #3
0
 public override void RegisterTeam(SoccerTeam team)
 {
     Teams.Add(team);
 }
Пример #4
0
 public abstract void RegisterTeam(SoccerTeam team);