title: Access private static method from outside the class C++
body: <p>How exactly can you access a private static method from outside the class. Say, I have a class</p>
  
  <pre><code>    Class ABC {
      private:
          static void print(string str) {
              cout &lt;&lt; "It works!!!" &lt;&lt; endl;
          }
      };
  </code></pre>
  
  <p>Now, I just to call print() function say from another function like:</p>
  
  <pre><code>    void doSomething() {
           string str = "1776a0";
           // Call to print() here
      }
  </code></pre>
  
  <p>I have searched the internet and stackoverflow for such a problem but I couldn't find much.
  So, please point me in the right direction as to if this is possible or not and if so how to do it.</p>
  
  <p>I am currently using GCC.</p>
  
  <p>Thank you all in advance.</p>