-
April 15th, 2011, 11:44 PM
#1
Static variables among classes
How are those static variables'values altered for each instance's access and change ?
-
April 16th, 2011, 12:21 AM
#2
Re: Static variables among classes
They are not altered for each instance and equally accessible by any instance. A class static variable exists as a single variable shared among all the class instances. Been changed by one instance, it immediately shows the change in every other instance.
Best regards,
Igor
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
|