Kotlin companion objects allow you to create static declarations within your classes. In this tutorial we provide some examples of when you'd want to use a companion object in Kotlin as of 2019.
As always though, if you have any questions about Kotlin companion objects video please leave a comment below and I'll get back to you as soon as I can.
---- Follow Me ----
Twitter - https://twitter.com/CodyEngelTweets
Medium - https://medium.com/@CodyEngel
---- Resources ----
Start From The Beginning: https://youtu.be/DjrkE1zVWe4
GitHub Repository: https://github.com/CodyEngel/learn-kotlin
Kotlin Companion Object Documentation: https://kotlinlang.org/docs/reference/object-declarations.html#companion-objects
---- Camera Gear ----
Camera - https://amzn.to/2LM9Zt3
Microphone - https://amzn.to/2LLv0Eb
Lens - https://amzn.to/317tGPT
Main Lights - https://amzn.to/2K2yHDH
Back Lights - https://amzn.to/2Yw4HUI
External Monitor - https://amzn.to/2YoM2Kl
* Note: the above links are affiliate links.
---- Desk Gear ----
Monitor - https://amzn.to/2yjZPqR
Headphones - https://amzn.to/2YBuo68
Google Nest Hub - https://amzn.to/30Zuki7
MacBook Pro 2019 - https://amzn.to/30YyuXy
* Note: the above links are affiliate links.
#kotlin #learnprogramming #programming