Skip to content

Instantly share code, notes, and snippets.

@tonybruess
Last active December 24, 2015 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonybruess/6748047 to your computer and use it in GitHub Desktop.
Save tonybruess/6748047 to your computer and use it in GitHub Desktop.
public class A {
protected static final A instance = new A();
public static A getInstance() {
return instance;
}
}
public class B extends A {
protected static final B instance = new B();
public static B getInstance() {
return instance;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment