summaryrefslogtreecommitdiff
path: root/output/ex34.java
blob: eb5b18f064d0d4c0dc07b092cd514e6f5cbe6a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class ex34 {
    public static void main(String[] z) {
        A a ;
        a = new A() ;
        System.out.println(1) ;
        System.out.println(a.foo(2)) ;
    }
}

class A {

    int c ;

    public int foo(int b) {
        int c ;
        c = 42 ;
        return c ;
    }

}