Created
April 20, 2014 22:50
-
-
Save mplacona/11127232 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SingleObject{ | |
static final SingleObject _instance = new SingleObject._internal(); | |
static SingleObject getInstance(){ | |
return _instance; | |
} | |
void showMessage(){ | |
print("Hello World!"); | |
} | |
SingleObject._internal(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment