Skip to content

Instantly share code, notes, and snippets.

Created Feb 2, 2020
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