January 2018
Intermediate to advanced
434 pages
14h 1m
English
If you are using Kotlin versions prior to 1.1, you'll need to implement the subclasses inside the sealed class, much like this:
sealed class ToastOperation { object ShowErrorToast:ToastOperation() class ShowMessageToast(val message:String):ToastOperation()}
Note that you can use the preceding way in the new version of Kotlin as well.
Read now
Unlock full access