Java overriding inherited string
<p>I have an Abstract class, which is derived by another Concrete class. In my abstract class I have a property which is called in method of the same Abstract class. This property is empty in Abstract class but in derived I set a value to it. Nevertheless, when compiler launches the method it takes abstract class' variable, not regarding that I'm launching this method on an Object of the derived class. How do I get the actual URL var instead of null ?</p>

<pre><code>abstract public class AbstractHTTPFactory {
    protected String URL = null;

    final public ArrayList&lt;? extends LGCookObject&gt; make() throws HTTPFactoryException{
        try {
            String response = sr.getData(URL);
            }
    }
}

public class RecipesHTTPFactory extends AbstractHTTPFactory{
    protected String URL = "VALUE";
}
</code></pre>
