Kotlin Activity cannot be extended. This type is final, so it cannot be inherited

As per Kotlin documentation, open annotation on a class is the opposite of Java’s final. It allows others to inherit from this class. By default, all classes in Kotlin are final.

open class Base {
    open fun v() {}
    fun nv() {}
}

class Derived() : Base() {
    override fun v() {}
}

Refer :https://kotlinlang.org/docs/reference/classes.html

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)