Kotlin, Android, Software Development, Kotlin Multiplatform, Java.
There are many ways how to model domain values and restricted class hierarchies in Kotlin: enum classes, type aliases, inline value classes, sealed classes, and sealed interfaces. We’ll take a look at each of them and describe what they offer and when to use them. Enum classes Enums are the most