001package subclass.ex6;
002
003public class M {
004        public static void main(String[] argv) {
005                (new B()).m();
006        }
007}
008class A {
009        void p() {
010                System.out.println("A.p: " + x); // which x?
011        }
012        final int x = 42;
013}
014class B extends A {
015        void m() {
016                this.p();
017                System.out.println("B.m: " + x); // which x?
018        }
019        final int x = 27;
020}