class A { fun foo(a: Int, b: String, c: Any) { println(b) } } class B { fun bar(a: A) { a.foo(1, "1", "!") } }