3 ms·
Yep. Team HAS-A list of players, not team IS-A list of players. While we're at it, "List <? extends Player>" might be a better type for the roster, since it a
by Roboprog 13y ago
Yep. Team HAS-A list of players, not team IS-A list of players.
While we're at it, "List <? extends Player>" might be a better type for the roster, since it allows players to be subclassed and still fit into the list.