mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
18 lines
435 B
Kotlin
18 lines
435 B
Kotlin
// MODE: inheritors
|
|
|
|
/*<# block [ 2 Inheritors] #>*/
|
|
abstract class SomeClass {
|
|
/*<# block [ 1 Override] #>*/
|
|
open fun someFun() = ""
|
|
/*<# block [ 2 Implementations] #>*/
|
|
abstract fun someAbstractFun()
|
|
}
|
|
|
|
class DerivedClassA : SomeClass {
|
|
override fun someFun() = "overridden"
|
|
override fun someAbstractFun() = "overridden"
|
|
}
|
|
class DerivedClassB : SomeClass {
|
|
override fun someAbstractFun() = "overridden"
|
|
}
|