001package subclass.ex4;
002
003public class M {
004        public static void main(String[] argv) {
005                (new B()).m();
006        }
007}
008class A {
009        private void p() {System.out.println("A.p");}
010        void m() {
011                System.out.println("A.m");
012                this.p(); // which p?
013        }
014}
015@SuppressWarnings("all")
016class B extends A {
017        private void p() {System.out.println("B.p");}
018}