// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class Ref2 {
    private String a;
    private String b;
    private String c;
    public Ref2() {
        a = "I am a";
        b = "I am b";
        c = "I am c";
    }
    public static void main(String[] args) throws Exception {
        Ref2 o = new Ref2();
        System.out.println((String)o.getClass().getMethod("getA", new Class[] { }).invoke(o, new Object[] { }));
        System.out.println((String)o.getClass().getMethod("getB", new Class[] { }).invoke(o, new Object[] { }));
        System.out.println((String)o.getClass().getMethod("getC", new Class[] { }).invoke(o, new Object[] { }));
    }
    public String getA() {
        return a;
    }
    public void setA(String a) {
        this.a = a;
    }
    public String getB() {
        return b;
    }
    public void setB(String b) {
        this.b = b;
    }
    public String getC() {
        return c;
    }
    public void setC(String c) {
        this.c = c;
    }
}
