Kings of Sweden

Report a typo

Fix the code below so that king can be reassigned to another object.

Write a program in Kotlin
val kingCharlesTheEleventh = Human()
val kingCarolusRex = Human()

val king = kingCharlesTheEleventh
king = kingCarolusRex
___

Create a free account to access the full topic