title: How to call private member function by using a pointer
body: <p>Rookie question:</p>
  <p>So there is this class</p>
  <pre><code>class A
  {
  private:
      void error(void);
  public:
      void callError(void);
  };
  
  </code></pre>
  <p>And I would like to call error from callError using a pointer.</p>
  <p>I can achieve calling a public function from main using a pointer.</p>
  <pre><code>int main(void)
  {
      void (A::*abc)(void) = &amp;A::callError;
      A test;
  
      (test.*abc)();
      return (0);
  }
  </code></pre>
  <p>However, I cannot find a way how to call error function from callError using a pointer. Any tips? :)</p>