summaryrefslogtreecommitdiffstats
path: root/src/test/test3/MethodRedirect.java
blob: 889a3c68cb78547b3fc3193b931b7bac53dd041a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package test3;

interface MethodRedirectIntf {
    int afo();
}

public class MethodRedirect implements MethodRedirectIntf {
    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());
    }
}