title: Why can't i fill this class's function pointer with this other class's function
body: <p>Now how about a class's function pointer to another class's function? That's my question</p>
  
  <p>Example:</p>
  
  <pre><code>class Apple
  {
     int(Apple::*pActionFunc)(void);
  };
  
  class Tree
  {
     Apple* tempy;
  
     void Init( void );
  
     int I_Work( void );
  };
  
  void Tree::Init( void )
  {
    tempy = new Apple( );
    tempy-&gt;pActionFunc = &amp;Tree::I_Work;
  }
  
  int Tree::I_Work( void )
  {
     "Do Things"
  }
  </code></pre>
  
  <p>That will not work. Why is that?</p>