title: C++. Class method pointers
body: <p>There is a class </p>
  
  <pre><code>class A {
  public:
      A() {};
  
  private:
      void func1(int) {};
      void func2(int) {};
  
  
  };
  </code></pre>
  
  <p>I want to add a function pointer which will be set in constructor and points to func1 or func2.</p>
  
  <p>So I can call this pointer (as class member) from every class procedure and set this pointer in constructor.</p>
  
  <p>How can I do it?</p>