47

Kotlin basics: types. Any, Unit and Nothing – ITNEXT

 5 years ago
source link: https://itnext.io/kotlin-basics-types-any-unit-and-nothing-674cc858035?gi=b4380b3898b1
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.
Java has Object to represent the root of the class hierarchy and voidtto represent the lack of a type. We will see here how Kotlin represent these types and how it improves them. Object is the root…

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK