What if that method is static and you don't want other classes to have access to the variable?
Type: Posts; User: KevinWorkman
What if that method is static and you don't want other classes to have access to the variable?
You can have private variables. Please provide an example that demonstrates exactly what you're talking about.