|
-
Mar 1st, 2004, 12:40 PM
#1
Thread Starter
Banned
Global variable
Hi,
I have a bunch of classes.
One of them is called Player.
Now in another class I want to create an array of Players. That's no problem.
But I wonder where I should declare this array so I can use it throughout my application. Because (obvious) if I declare the array in the class NewGame, I can't use it in the class Game or something..
How can I make the array 'global'..
Thanks,
MK
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|