Sealed Classes in Kotlin

kapil sharma
1 min readAug 15, 2019

In Kotlin context we can also use sealed classes combined with whenexpression. Allowing compiler to verify all branch statements, making the statement else unnecessary.

--

--