Kotlin, Android, Software Development, Kotlin Multiplatform, Java.
direct subclasses are known at compile time. We can think of a sealed class as a sort of enum where all the possible values are known ahead of time, but each value (subclass) can have different properties and there can be multiple instances of the same subclass. All subclasses need to be defined