title: Is there a way to override class variables in Java?
body: <pre><code>class Dad
  {
      protected static String me = "dad";
  
      public void printMe()
      {
          System.out.println(me);
      }
  }
  
  class Son extends Dad
  {
      protected static String me = "son";
  }
  
  public void doIt()
  {
      new Son().printMe();
  }
  </code></pre>
  
  <p>The function doIt will print "dad". Is there a way to make it print "son"?</p>