class A { static int w = 1; private static int x = 2; public static int y = 3; protected static int z = 4; public static void main (String[] argv) { System.out.println (" w = " + w); System.out.println (" x = " + x); System.out.println (" y = " + y); System.out.println (" z = " + z); } } class B extends A { public static void main (String[] argv) { System.out.println (" w = " + w); System.out.println (" x = " + x); // Compiler error. System.out.println (" y = " + y); System.out.println (" z = " + z); } } class C { public static void main (String[] argv) { System.out.println (" w = " + A.w); System.out.println (" x = " + A.x); // Compiler error. System.out.println (" y = " + A.y); System.out.println (" z = " + A.z); } }