aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test1/InvokeInt.java
blob: 22eb5f110289deab9d43290663c1e0a21fd26199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package test1;

interface InvokeInt2 {
    int k(int i);
}

public class InvokeInt implements InvokeInt2 {
    public int run() {
	return check(this);
    }

    public int check(InvokeInt2 obj) {
	return obj.k(3);
    }

    public int k(int i) {
	return i + 1;
    }
}