class Add implements IntToInt { int inc; public Add(int n) { inc=n; } public int func(int n) { return n+inc; } }