mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
16 lines
400 B
Kotlin
16 lines
400 B
Kotlin
// MODE: inheritors
|
|
|
|
/*<# block [ 1 Implementation] #>*/
|
|
interface SomeInterface {
|
|
/*<# block [ 2 Implementations] #>*/
|
|
fun interfaceMethodA()
|
|
}
|
|
/*<# block [ 1 Inheritor] #>*/
|
|
open class SomeClass : SomeInterface {
|
|
/*<# block [ 1 Override] #>*/
|
|
override fun interfaceMethodA() {} // <== (1)
|
|
}
|
|
|
|
class SomeDerivedClass : SomeClass() {
|
|
override fun interfaceMethodA() {} // <== (2)
|
|
} |