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