mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
12 lines
167 B
Kotlin
12 lines
167 B
Kotlin
abstract class B() {
|
|
abstract fun foo2(arg: Int = 239) : Int
|
|
}
|
|
|
|
class C() : B() {
|
|
override fun foo2(arg: Int) : Int = arg
|
|
}
|
|
|
|
fun invokeIt() {
|
|
C().foo2()
|
|
}
|