Client age

Report a typo

What will be the output of the following snippet of code:

fun main() {
    val bob = Client("Bob", 29, "Male")
    val john = bob.copy(name = "John", age = 21)
    val robert = john.copy(name = "Robert")
    println(bob.age + john.age + robert.age)
}
Enter a number
___

Create a free account to access the full topic