kotlin multiple extends

The Kotlin programming language supports multiple inheritance through interfaces. When a class implements multiple interfaces, it can inherit the behavior of all the interfaces. This is achieved by separating the interfaces with commas in the class declaration. For example:

interface A {
    fun a()
}

interface B {
    fun b()
}

class C : A, B {
    override fun a() {
        // implementation of method a
    }

    override fun b() {
        // implementation of method b
    }
}

In this example, class C implements interfaces A and B, and it provides implementations for the methods defined in both interfaces. This allows class C to inherit behavior from both interfaces simultaneously.