If your method is just a single line, it is good to use method expressions:
interface Signatory { fun sign() } class Person: Signatory { override fun sign() = println("I can sign documents") }
If your method is just a single line, it is good to use method expressions:
interface Signatory { fun sign() } class Person: Signatory { override fun sign() = println("I can sign documents") }