Skip to content

Instantly share code, notes, and snippets.

@magdamiu
Created Feb 2, 2020
Embed
What would you like to do?
Interfaces in Kolin
interface Pet {
fun eat()
fun sleep()
}
class Cat : Pet {
override fun eat() {
println("Cat eats fish")
}
override fun sleep() {
println("Cat sleeps a lot")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment