Redefine an reference in Java (Extend usage)
<p>I have a question about the usage of extend that I dont reach to understand.
For that example I'll use two classes:</p>

<pre><code>public class Father {

    protected String message="Father";


    public void printme(){
        System.out.println(this.message);
    }
}
</code></pre>

<p>And</p>

<pre><code>public final class Son extends Father {

    protected String message="Son";

}
</code></pre>

<p>My question is, why if I call:</p>

<pre><code>new Son().printme();
</code></pre>

<p>It prints "Father"? How can I solve that changing only the "Son" class?</p>

<p>Thanks in advance</p>
