overriding a method from a class with a private variable
<p>If I have a class that can't be changed (inside a jar), 
Ex. </p>

<pre><code>public class AA implements A{
  private String s = "foo";
  public String getValue() { return s; }
}
</code></pre>

<p>what would be a good way to override that getValue() method? 
My way has been recopying the class. Ex.</p>

<pre><code>public class AB implements A{
  private String s = "foo";
  public String getValue() { return s + "bar"; }
}
</code></pre>

<p>Thanks!</p>
