class A : B() { public fun foo(s: String) { } } class B : A() { public fun foo(s: String) { } }