class Greeting {
static func sayGoodby(_ message: String = "Goodby!") {
print(message)
}
static func sayHello(_ message: String = "ello!") {
print(message)
}
}
Greeting.sayGoodby()
//输出 "Goodby!"
Greeting.sayGoodby("Hi")
//输出 "Hi"