title: Java abstract class and overriding variables
body: <p>I have encountered a problem which I cannot solve. Let's say we have the superclass A:</p>
  
  <pre><code>public enum Enumeration {
    A, B, C;
  }
  
  public abstract Class A {
       private Enumeration e;
  
       public void someMethod {
             // do something here with 'e'.
       }
  }
  </code></pre>
  
  <p>Now let's assume we have an class B.</p>
  
  <pre><code>public Class B extends A {
      private final Enumeration = e.A;
  }
  </code></pre>
  
  <p>Here I get a compiler warning that the value is never used.</p>
  
  <p>I just want to define the method in Class A, thus I have to define the variable. But I want to give the variable a new fixed value in the subclass.</p>
  
  <p>Is this not possible?</p>