class C { private int field = 0; public int getDefault() { return field; } void foo() { System.out.println(field); } }