|
-
May 13th, 2009, 01:31 AM
#20
Re: static variables
Is the guy'z problem sharing and accessing data between two different processes?
I don't think so. He has declared and initialized two separate instances of his class and every instance will have its separate data.
Scorpion! if you want to access A's instance in B, make some public method in B which accepts A's instance and pass it your declared instance.
Correct me someone if I am wrong.
Last edited by nabeelisnabeel; May 13th, 2009 at 01:36 AM.
Reason: extra
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
|