def print(name: String = "Ty Coon"): Unit = {
println(s"Hello, $name!")
}
// Calling the function without an argument uses the default value
print()
// Calling the function with an argument overrides the default value
print("Scala")
/*
run:
Hello, Ty Coon!
Hello, Scala!
*/