title: Scala object extends Java class static field
body: <p>I'm would like to know how could I inherent static field from Java class in Scala.</p>
  
  <p>Here is a Java example, if I a class named ClassFromJava, I could extend it, add some static field, and use the subclass to access the VERSION field.</p>
  
  <pre><code>public class ClassFromJava {
      public static int VERSION = 1;
  }
  
  public class ClassFromJavaSub extends ClassFromJava {
      public static String NOTE = "A note";
  }
  
  public class Test {
      public static void main (String [] args) {
         System.out.println (ClassFromJavaSub.VERSION); // This works.
      }
  }
  </code></pre>
  
  <p>But if I want extends ClassFromJava in Scala, and add some constant value, it seems not work.</p>
  
  <pre><code>object ClassFromScala extends ClassFromJava {
      val NOTE = "A Note"
  }
  
  object Test {
      def main (args: Array[String]) {
          // This line won't compile
          // ClassFromScala has no value VERSION.
          println (ClassFromScala.VERSION) 
      }
  }
  </code></pre>
  
  <p>What should I do if I would like ClassFromScala also has the VERSION variable?</p>