C++ help
I've got to do a text based football simulator for EURO 2016 tournament.I have to do this using classes and I'm stucked by the inheritance of my classes. I've got 24 teams each team with 25 players. 6 groups each group with 4 teams. In the beggining you start by picking a team. The program shows you the group the team is taking part of. Then the program show you all of the 25 players and tells you to select the formation and 16 of them for the next game(11 starters and 5 substitutes).
From what you describe, a team object is a collection of 25 player objects, a group object is a collection of team objects, there's probably an object that is a collection of group objects. The only place that I see inheritance may be the skill set that a player has for their position.
Join our real-time social learning platform and learn together with your friends!