using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace sporting_teams
{
class Program
{
static void Main(string[] args)
{
}
}
abstract class BaseSportTeam
{
string _sportType = "";
string _coach = "";
int _playerNumber = 1;
public string SportType { get { return _sportType; } }
public string Coach { get { return Coach; } }
public int Players { get { return _playerNumber; } }
public BaseSportTeam(string sportType, string coach, int playerNumber = 1)
{
_sportType = sportType;
_coach = coach;
_playerNumber = playerNumber;
}
public virtual void StartSeason()
{
//Here should be implementation
}
public virtual void PlayGame()
{
//Here should be implementation
}
public override string ToString()
{
return String.Format("Sport type: {0}\nCoach: {1}\n{2} players in game", _sportType, _coach, _playerNumber);
}
}
}
Comments
Leave a comment