Objets compagnons de Kotlin
class Person {
fun callMe() = println("I'm called.")
}
fun main(args: Array<String>) {
val p1 = Person()
// calling callMe() method using object p1
p1.callMe()
}
SAMER SAEID