title: Reuse superclass static fields
body: <p>I have this class declaration</p>
  
  <pre><code>abstract class  A {
      protected static String message = "Hello";
  }
  </code></pre>
  
  <p>And I want this field to get propagated to subclasses, to avoid typing <code>protected static String message = "Whatever";</code> (the value of this static field is different in each subclass) in all the subclasses.</p>
  
  <p>I know this won't work:</p>
  
  <pre><code>class B extends A {
  
      static {
          message = "Blablabla";
      }
  }
  </code></pre>
  
  <p>Because it will actually modify <code>A</code>'s <code>message</code> because static fields/methods are not inherited. What I want to know is if there's any other way of doing this, or if I have to rewrite the static field on each subclass.</p>