Referential equality

Report a typo

Check if the variables captainJackSparrow and pirateJackSparrow point to the same object and print the result using the println() function.

Write a program in Kotlin
val pirateJackSparrow = Sailor("None")
val captainJackSparrow = Sailor("None")
// put your code here
___

Create a free account to access the full topic