| Start |
|---|
Use as repalcement of static methods/fields of java From any other class, just invoke the variable and functions in this way: |
| Use as a singleton Kotlin objects are actually just singletons. Its primary advantage is that you don't have to use In java your singleton looks like this: In kotlin, the equivalent code is It's obvoiusly less verbose to use. |
Read Article
https://develop.horje.com/learn/1434/reference