Doug
09/18/2020, 4:32 AMClassA
and only override a specific function in ClassB
, is there anyway to do that, or do I need to ensure all of the methods require are created?
interface View {
fun loadFirstPage()
fun otherFunction()
}
open class ClassA: View {
override fun loadFirstPage() { ... }
override fun otherFunction() { ... }
}
class ClassB: ClassA() {
override fun loadFirstPage() { ... }
}
when I load ClassB
, I’m only seeing the code from ClassA
be executedTobias Berger
09/18/2020, 7:32 AMloadFirstPage
is not marked as open
in ClassA. Otherwise this should work just fine