title: Static variables in static method in base class and inheritance
body: <p>I have these C++ classes:</p>
  
  <pre><code>class Base
  {
  protected:
      static int method()
      {
          static int x = 0;
          return x++;
      }
  };
  
  class A : public Base
  {
  
  };
  
  class B : public Base
  {
  
  };
  </code></pre>
  
  <p>Will the <code>x</code> static variable be shared among <code>A</code> and <code>B</code>, or will each one of them have it's own independent <code>x</code> variable (which is what I want)?</p>