class Communication {
companion object {
fun sayGoodbye(message: String = "Goodbye!") {
println(message)
}
fun sayHello(message: String = "Hello!") {
println(message)
}
}
}
Communication.sayGoodbye()
//prints "Goodby!"
Communication.sayHello("Hi")
//prints "Hi"