Koltin, Sealed Classes In Kotlin, Android.
classes, introduced in Kotlin 1.2, represent a restricted class hierarchy. They define a set of possible subclasses within themselves, preventing the creation of new subclasses outside the sealed class declaration. This ensures compile-time knowledge of all possible types a sealed class variable