aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test1/Proceed2.java
blob: b66eb0ae2c676d23a98aec207b29e7cfabbbaf9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package test1;

public class Proceed2 {
    public Proceed2() { i = 3; }

    public int i;

    public void p() {}

    public int k1() {
	Proceed2 p2 = new Proceed2();
	boolean b = p2 instanceof Proceed2;
	Object obj = p2;
	Proceed2 q2 = (Proceed2)obj;
	p2.p();
	i = 2;
	return i;
    }

    public int k2() {
	Proceed2 p2 = new Proceed2();
	p2.p();
	i = 2;
	return i;
    }
}