int g(int x) { int y = 1; return x+y; } class A { private int y = 1; int f(int x) { y++; return x+ y; } } new A();