class C implements A { C(A a) {} } interface A { A a = new C(this); A a1 = new C(this){}; }