For sake of simplicity of an example, imagine basketball.
Each player has statistics stored for them. Shots taken, shots made, points, rebounds, etc. I can handle objects that do that fine. The problem is when I want to group them by team, but still keep OO-ness (and not use an array of objects in my program). Maybe I'm missing something simple..
What would be the best way to group the basketball players by team? How would I retrieve stats for say, "Michael Jordan," including the team he is on/grouped in? What if someone refers to him by number and I want to get his name from that?
Thanks