Fix the code below so that king can be reassigned to another object.
Structural vs referential equality
Kings of Sweden
Report a typo
Write a program in Kotlin
val kingCharlesTheEleventh = Human()
val kingCarolusRex = Human()
val king = kingCharlesTheEleventh
king = kingCarolusRex
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.