1 7 package implementz; 8 9 14 public class Driver 15 { 16 public static void main(String [] args) throws Exception 17 { 18 System.out.println("--- POJO ---"); 19 POJO pojo = new POJO(); 20 21 System.out.println("--- POJO.methodFromImplements ---"); 22 pojo.methodFromImplements(); 23 24 System.out.println("--- POJO.methodFromImplementingSuper (should not intercept) ---"); 25 pojo.methodFromImplementsSuper(); 26 27 System.out.println("--- POJO.methodFromImplementing ---"); 28 pojo.methodFromImplementing(); 29 30 System.out.println("--- POJO.methodFromImplementingSuper ---"); 31 pojo.methodFromImplementingSuper(); 32 33 System.out.println("--- POJO.ownMethod (should not intercept) ---"); 34 pojo.ownMethod(); 35 } 36 } 37 | Popular Tags |