public class C extends P
{
    private int x = 3;
    private int z = 4;

    public void method1()
    {
	   System.out.println("C.method1()");
         System.out.println("Child attributes");
         System.out.println("x/z: " + this.x + " " + this.z);
    }

    public void method2()
    {
        int x = 100;
        int y = 200;
        int z = 300;
	  System.out.println("C.method2()");
        System.out.println("Local shadows all");
        System.out.println("x/y/z: " + x + " " + y + " " +
                            z);
    }

    public void method3()
    {
        int x = 100;
        int y = 200;
        int z = 300;
	  System.out.println("C.method3()");
        System.out.println("Loc x/y/z: " + x + " " + y + " " +
                            z);
        
        System.out.println("P(x/y): " + super.x + " " + super.getY());
         // super.y : syntax errror, access permission violated
        System.out.println("C(x/z): " + this.x + " " + this.z);
    }
}