static void Main(string[] args) { Player player = new TennisPlayer(); player.FirstName = "Walter"; player.LastName = "Olivares"; // player.AssignTeam(new Team { Name = "Santos" }); player.SetCategory(PlayerCategory.Amateur); Console.Write($"{player.FirstName} {player.LastName} categoria {player.Category}"); Console.ReadLine(); }
public static void LCPExample() { //IPlayerTeam player = new FootballPlayer(); Player player = new TennisPlayer(); player.FirstName = "Walter"; player.LastName = "Montillo"; //player.AssignTeam(new Team { Name = "U de Chile" }); player.SetCategory(PlayerCategory.Professional); WriteLine($"{player.FirstName} {player.LastName} Categoria {player.Category}"); ReadLine(); }