I have two Java classes, one of which inherits from other. They are somewhat like the following:
A.java:
public class A {
    public String invocations[] = {"foo"};
    public A() {
        // do stuff
    }
}
B.java:
public class B extends A {
    public String invocations = {"bar", "baz"};
    public B() {
        super();
    }
}
In this example, assuming I create an instance of B and get its invocations property, it returns {"foo"} instead of the expected {"bar", "baz"}. Why is this, and how can I get the {"bar", "baz"}?
 
    