使用超级限定符测试方法调用
class MySuper { public void print() { System.out.println("Inside AOSuper.print()"); } /* from 时代Java公众号*/ } class MySub extends MySuper { public void print() { // Call print() method of AOSuper class super.print(); // Print a message System.out.println("Inside AOSub.print()"); } public void callOverridenPrint() { // Call print() method of AOSuper class super.print(); } } /*来自 n o w j a v a . c o m - 时 代 Java*/ public class Main { public