I am new to Kotlin Programming
What are the real time examples of Sealed Classes. If the implemented classes are not sealed then it can be further inherited. What's the use in it?. Is Sealed class same as default modifier in java. (Except the when condition case what is the real world usage of sealed classes and When to use sealed classes).