您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Case3.java 635B

12345678910111213141516171819202122232425262728293031
  1. import java.lang.reflect.*;
  2. interface I {
  3. }
  4. class C implements I {
  5. }
  6. public aspect Case3 {
  7. // one order
  8. public int C.i = 1;
  9. public int I.i = 5;
  10. // the other order ;)
  11. public int I.j = 5;
  12. public int C.j = 1;
  13. public int I.k = 1;
  14. public int C.k = 5;
  15. public static void main(String []argv) {
  16. System.out.println("Value of C.i is "+new C().i);
  17. System.out.println("Value of C.j is "+new C().j);
  18. System.out.println("Value of C.k is "+new C().k);
  19. System.out.println("Value of I.i is "+((I)new C()).i);
  20. System.out.println("Value of I.j is "+((I)new C()).j);
  21. }
  22. }