Last active
July 9, 2022 17:02
-
-
Save aleksandarzekovic/df19e0e59696637108303794a683f59a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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