interface F { void foo(int i); } class A implements F { int myI; public void foo(int i){ myI = i; } }