public class Test extends Super{ int i; int getI() { return i; } } class Super { Super setI(int i) { return this; } }