Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.11 seconds.

  1. [SOLVED] Re: Calling a non-static method outside the package without using extends

    Sounds to me like you want MyClass to be a Singleton Object.

    That would look like:

    public class MyClass {
    private static MyClass ref;

    private myvar;

    //Private constructor for...
  2. [SOLVED] Re: Calling a non-static method outside the package without using extends

    Then it needs to be static.
  3. [SOLVED] Re: Calling a non-static method outside the package without using extends

    Create a MyClass object and call the getMyvar() method.
Results 1 to 3 of 3