Final or open members

Report a typo

Choose the correct member for the method:

Fill in the gaps with the relevant elements
open class MyBaseClass {
     fun myMethod() {
        println("Basic implementation")
    }
}
class MyDerivedClass : MyBaseClass() {
    override fun myMethod() {
        println("Overridden implementation")
    }
}
finalcloseopen

Create a free account to access the full topic