Replicating the enum functionality using sealed classes - devrath/KotlinAlchemy GitHub Wiki
enum
instead of sealed class
for this requirement
This is highly unlikely since we use an Enum representation
enum class Student {
Mahesh,
Suresh,
Smitha
}
SealedClass representation
sealed class Student {
object Mahesh
object Suresh
object Smitha
}