// testando new object (erro) class m { public static void main(String[] args) { System.out.println(new a().i()); } } class a { a a; public a A(){a = new c(); return this;} public int i(){ return 0; } }