hey guys
i need to know how do i make a class full of variables and use them in various forms? in other words what variable type do i need to use so that they are able to be accessed and modified outside the class that they are in.
Printable View
hey guys
i need to know how do i make a class full of variables and use them in various forms? in other words what variable type do i need to use so that they are able to be accessed and modified outside the class that they are in.
http://lmgtfy.com/?q=C%23+variable+scope
First you need to understand the basics of what Variable Scope is. The Type of the variable has nothing to do with its scope. Scope is determined by where the variable is instantiated.