How to address 'class 'x' is not abstract and does not implement abstract member function 'y' in kotlin'?

Example:

interface MyInterface {
    fun myFunction()
}

class MyClass : MyInterface {
}

If a class inherits an interface or an abstract class, it must implement all of its abstract members.

Solution:

Implement all the required abstract member functions or declare the class as abstract.


class MyClass : MyInterface {
    override fun myFunction() {
        // implementation here
    }
}

Beginner's Guide to Kotlin