Shuffle

Report a typo

We have the following method:

def showInfo(
  name: String,
  surname: String,
  age: Int,
  homeAddress: String = "undefined",
  school: String = "undefined",
): String =
  s"""Information:  
     |Name: $name 
     |Surname: $surname 
     |Age: $age 
     |School number: $school 
     |Home Address: $homeAddress""".stripMargin

How do we pass parameters in a different order? Choose a method call where the fields are given in the following order: name = "Mike", surname = "Brown", homeAddress = "Baker Street", school = 7, age = 15

Select one or more options from the list
___

Create a free account to access the full topic