You may not need a sealed class

When it comes to decide between using an enum or a sealed class in Kotlin, I’ve seen several situations where developers where using them indistinctly.

Generally speaking, sealed classes are more powerful than enums. This is because a sealed class is just an abstract class which requires to define every child class in the same Kotlin source file.

Enum vs sealed class