title: How to call static method from another class?
body: <p>I am trying to call a <em>static method</em> from a.h to b.cpp. from what I have researched, it is as simple as just putting a :: scope resolution but however I tried and it throws me an error "C++ requires a type specifier  for all declarations". below is what I have.</p>
  
  <p>a.cpp </p>
  
  <pre><code>float method() {
     //some calculations inside
  }
  </code></pre>
  
  <p>a.h </p>
  
  <pre><code>static float method();
  </code></pre>
  
  <p>b.cpp</p>
  
  <pre><code> a::method(); &lt;- error!  "C++ requires a type specifier  for all declarations".
   but if I type without the ::
   a method(); &lt;- doesn't throw any errors.
  </code></pre>
  
  <p>I quite confused and need guidance. </p>