We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7ffba2 commit c04e8fbCopy full SHA for c04e8fb
Singleton.kt
@@ -0,0 +1,9 @@
1
+/**
2
+ * Singleton pattern -> Only one instance lives in the whole application
3
+ */
4
+object Singleton {
5
+
6
+ fun doSomething() {
7
8
+ }
9
+}
0 commit comments