Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
enum class VehicleType {
TRUCK,
PLANE,
UNKNOWN; //here
}
...
object Unknown: Vehicle {
override val type: VehicleType = VehicleType.UNKNOWN
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment