Object is a special class in Kotlin that only has one instance, which you can use to create Singletons easily. In this episode, we go over the differences between implementing a Singleton in Java versus Kotlin, how you can create Singletons in Kotlin without using the static keyword, and what’s happening under the hood when using object.
#KotlinVocabulary playlist → https://goo.gle/2wHr94N
Subscribe to Android Developers → https://goo.gle/AndroidDevs
#Kotlin #AndroidDev #Featured
#KotlinVocabulary playlist → https://goo.gle/2wHr94N
Subscribe to Android Developers → https://goo.gle/AndroidDevs
#Kotlin #AndroidDev #Featured
- Category
- Software
Sign in or sign up to post comments.
Be the first to comment