There are never too many ways to resolve a conflict

Report a typo

The code below contains an inheritance conflict.

interface PrinterInterface {
    fun printSomething() = print("something")
    fun printSomethingElse() = print("something else")
}

interface NewLinePrinterInterface {
    fun printSomething() = println("new line something")
    fun printSomethingElse() = println("new line something else")
}

class MultiPrinterClass : PrinterInterface, NewLinePrinterInterface {
    override fun printSomething() = print("classy something")

    override fun printSomethingElse() {
        super.printSomethingElse() // Conflict Line
    }
}

From the options below, select the ones that would resolve the conflict if placed instead of the Conflict Line.

Select one or more options from the list
___

Create a free account to access the full topic