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

class A {

    int foo ;

    public int foo(int a) {
        return a ;
    }

}