gistfile1.txt class A { public void fun(){ this.print(); } private void print{ //此为private,无覆写 System.out.println("zhe shi zsd") }}public class TestDemo{ public static void main(String args[]){ B b = new B(); b.fun(); }}
class A { public void fun(){ this.print(); } private void print{ //此为private,无覆写 System.out.println("zhe shi zsd") } } public class TestDemo{ public static void main(String args[]){ B b = new B(); b.fun(); } }