Not instantiating when class is created

master
Hammy 4 years ago
parent baff959dd3
commit 45e225c80b

@ -2,7 +2,7 @@ package singleton;
public class SingleObject { public class SingleObject {
private static SingleObject instance = new SingleObject(); private static SingleObject instance;
private SingleObject() { private SingleObject() {
} }

Loading…
Cancel
Save