class A { public fun foo() { } } interface Z { fun foo() }