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.

MethodRedirect.java 438B

1234567891011121314151617181920
  1. package test3;
  2. interface MethodRedirectIntf {
  3. int afo();
  4. }
  5. public class MethodRedirect implements MethodRedirectIntf {
  6. private int foo() { return 0; }
  7. public static int poi() { return 1; }
  8. public int bar() { return 2; }
  9. public int afo() { return 3; }
  10. public int test() {
  11. return bar();
  12. }
  13. public static void main(String[] args) {
  14. System.out.println(new MethodRedirect().test());
  15. }
  16. }