Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    12
    Views
    1,922

    Re: non static varible from static context error

    Sorry, I don't know much about how you are trying to make the OS do something.
  2. Replies
    12
    Views
    1,922

    Re: non static varible from static context error

    Please post the full text of the error message.
  3. Replies
    12
    Views
    1,922

    Re: non static varible from static context error

    See post #6
  4. Replies
    12
    Views
    1,922

    Re: non static varible from static context error

    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...
  5. Replies
    12
    Views
    1,922

    Re: non static varible from static context error

    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...
Results 1 to 5 of 5