Singleton Design Pattern

This commit is contained in:
rillk500 2020-10-16 21:53:06 +06:00
parent 72b2a6d92d
commit 258291df5c
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import data;
class GStateManager { class GStateManager {
private static GStateManager instance; private static GStateManager instance;
private this() {} private this() { }
static GStateManager getInstance() { static GStateManager getInstance() {
if(instance is null) { if(instance is null) {