package foo; public class Bar { private final int x; Bar(int x) { this.x = x; } public int getX() { return x; } }