public class AB extends AA { private int vv; public AB() { vv = 5; } public void pp() { System.out.println(String.format(" this vv=%d super vv=%d", vv, super.vv)); } public void p3() { int vv = 7; System.out.println(String.format("vv=%d class vv=%d", vv, this.vv)); } /* public void p4() { int vv = 7; if (this.vv == 5) { int vv = 17; System.out.println(String.format("vv=%d class vv=%d", vv, this.vv));} } */ public static void main(String[] args) { AB ab = new AB(); ab.pp(); ab.p3(); } }