You don't pass a method. You pass a reference to the class containing the method. If you create a new instance of the Game class it won't have the data from the other instance.
You can use the...
Type: Posts; User: Norm
You don't pass a method. You pass a reference to the class containing the method. If you create a new instance of the Game class it won't have the data from the other instance.
You can use the...
Cross posted at Assignment Help - Need Help Integrating Classes - Dev Shed
The code provides getGame() to get an element in games[]
The Game class has methods to get at the values it contains.
The Schedule class's constructor creates and initializes the games array.