There is a method with a default parameter:
def show(prefix: String = "", age: Int): String = s"$prefix$age"
What will the result of its code be if the parameter is not passed?
show(age = 1)There is a method with a default parameter:
def show(prefix: String = "", age: Int): String = s"$prefix$age"
What will the result of its code be if the parameter is not passed?
show(age = 1)Create a free account to access the full topic