shared variable class


Accessing global/shared variables inside a class

Hello!

I try to refactor an existing source i.e. make a class out of it.
The problem is that the existing source accesses (and changes) global shared variables.

When I create a class and want to reuse the existing code I get a problem because shared entities cannot be defined inside a class or interface. How can I access and change these global shared variables inside my class?


Syndicate content