interface IA { void a(); } interface IB { void b(); } interface IC{ T c(); } class K { void foo(IC x){ x.c().a(); } }