Ask your own question, for FREE!
Computer Science 18 Online
OpenStudy (anonymous):

C++ help

OpenStudy (anonymous):

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).

OpenStudy (rsmith6559):

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.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!