blob: c7cacde851fafa9f82064fc892837c1434201e80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package test3;
interface MethodRedirectIntf {
int afo();
}
public class MethodRedirect implements MethodRedirectIntf {
@SuppressWarnings("unused")
private int foo() { return 0; }
public static int poi() { return 1; }
public int bar() { return 2; }
public int afo() { return 3; }
public int test() {
return bar();
}
public static void main(String[] args) {
System.out.println(new MethodRedirect().test());
}
}
|