Kotlin, Android, Software Development, Kotlin Multiplatform, Java.
HATCHBACK("hatchback", 2) } fun onStyleSelected(style: VehicleStyle) { // reading properties Analytics.trackStyleSelected(style.id) // checking for specific enum entry when(style){ VehicleStyle.CONVERTIBLE -> TODO() VehicleStyle.COUPE -> TODO() VehicleStyle.HATCHBACK -> TODO() } } // cannot pass