I was wondering.
I am trying to do a game manager and will have some classes.
Tournament, Team, Player an a mySQL class.
What is the easiest way to do so you can use the mySQL class in all of the other classes, and class Team should allso use the Player class, the Tournament class should allso use the Team class and the Player class.
Should I create an instance of the classes I want to use and send them to the constructor of each class or how should I do?
Hope you understand what I am trying to do here.
Thanks in advance!
/Staffan