Say I have a public class "class1" and in it is a public int "myint".
No matter where I create an object with that class, it's not truly global, because it only works in the function I define it in. So if I define it in main it doesnt travel to any other functions. I get an error if I try to define it in just the class.
What I'm asking is how to I make a class that I can make an object with that can be used anywhere in my program?