3 ms·
>> Adding an interface like IEnumerable<Player> to the team gives a nice syntax like "foreach(Player p in team)" It would be interesting to allow _private_ inh
by ollysb 13y ago
>> Adding an interface like IEnumerable<Player> to the team gives a nice syntax like "foreach(Player p in team)"
It would be interesting to allow _private_ inheritance, i.e. a class inherits methods from a superclass but they're all private and you need to add interfaces to expose them. That way you could inherit an implementation without leaking it into the public interface.