July 2018
Intermediate to advanced
336 pages
9h 23m
English
Enums are a great way to enforce type and value safety. Just like in Java, Kotlin also has enums and the following way in which an enum can be defined:
enum class Transaction(var code : Char) { DEPOSIT('d'), WITHDRAW('w')}
Read now
Unlock full access