![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
I'm trying to implement a class that uses a static method to return an instance of itself to the calling object. It's not precisely a singleton because it can also be instantiated via a call to a constructor. I've gotten it to work more or less correctly, but I'm having trouble with methods in the instance that access non-static variables: The pertinent code follows: public class GeneManager { private GeneManagerGUI gui; private static GeneManager manager; Replies: |
Sponsored Links
|