summaryrefslogtreecommitdiff
path: root/output/ex21.java
blob: 2bb11a3485ff8a147b8e74eca279552d04c30635 (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
class test66{
    public static void main(String[] a){
        System.out.println(new Test().start());
    }
}

class Test2 extends Test{
}

class Test{

    Test test;

    public int start(){
        test = test.next();
        return 0;
    }

    public Test next() {
        Test2 test2;
        test2 = new Test2();
        return test2;
    }
}