Sorry, I don't know much about how you are trying to make the OS do something.
Type: Posts; User: Norm
Sorry, I don't know much about how you are trying to make the OS do something.
Please post the full text of the error message.
See post #6
If you want the main() method to be able to reference a class variable, you need to save a reference to the created instance of the class and use that to access its variables. The posted code does...
A non-static variable only exists as part of an instance of a class. When you create a class object, all its non-static variables are created with it. Each class object has its own version of each...