title: How to inherit static methods from base class in JavaScript?
body: <p>I'm trying to achieve some basic OOP in JavaScript with the prototype way of inheritance. However, I find no way to inherit static members (methods) from the base class.</p>
  
  <p>We can simulate the basic class model by using prototype:</p>
  
  <pre><code>SomeClass = function(){
      var private_members;
  
      this.public_method = function(){
          //some instance stuff..
      };
  };
  
  Class.static_method = function(){
      //some static stuff;
  };
  
  //Inheritance
  SubClass = function(){ //sub-class definition };
  SubClass.prototype = new Class();
  </code></pre>
  
  <p>However, <code>SubClass</code> doesn't inherit <code>static_method</code> from <code>Class</code>.</p>