5

Kotlin companion object - common use cases

 3 years ago
source link: https://www.youtube.com/watch?v=Dt8zTBdDv5w
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Kotlin companion object - common use cases

606 views
•Mar 7, 2021

8.62K subscribers

The companion object allows you to have properties or functions without having an instance of the class. There are no static variables in Kotlin, so this is how you achieve the same thing.

Programming Kotlin by Venkat Subramaniam: https://amzn.to/3sNnryhhttps://discuss.kotlinlang.org/t/what...

Hi! I’m Rahul, a software engineer with a passion for teaching. I went to Stanford, was a founding engineer at a startup, and have worked at various companies across Silicon Valley. I’m currently an Android Developer at Facebook and teach an Android class at Stanford. Would love to connect with you! This channel is about tech (especially Silicon Valley), combining tactical how-to guides with interviews.

📹 YouTube: https://www.youtube.com/c/RahulPandey...​ 📝 LinkedIn: https://www.linkedin.com/in/rpandey1234/​ 🐦 Twitter: https://twitter.com/rpandey1234​ 📸 Instagram: https://www.instagram.com/rpandey1234/​ 📂 Github: https://github.com/rpandey1234/


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK