Skip to content

Commit c04e8fb

Browse files
Singleton pattern
1 parent a7ffba2 commit c04e8fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Singleton.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)