You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PR83303.java 413B

1234567891011121314151617181920212223242526
  1. // Protected method in A
  2. class A {
  3. protected void m1 (){System.err.println("A.m1()");}
  4. }
  5. // Simple subclass
  6. public class PR83303 extends A {
  7. public static void main(String []argv) {
  8. System.err.println("Hi");
  9. new PR83303().m1();
  10. }
  11. }
  12. aspect C {
  13. declare parents: PR83303 implements I;
  14. public void PR83303.m1(){System.err.println("ITD version of m1");}
  15. }
  16. interface I {
  17. public void m1();
  18. }