What happen if I call functions in header file?
<p>I am a newbie of using c++. I am following a tutorial to get some idea of basic structure of C++ and I see function calls in the header files.</p>

<p>I have something like this</p>

<pre><code>class cuserlist : public cmutex
{
private:
  list &lt; cuser* &gt;_clientlist;


  bool init ();
  bool destroy ();
public:
    cuserlist ()
  {
    init ();
  }
   ~cuserlist ()
  {
    destroy ();
  }


  bool add(int cfd);
  bool remove(int cfd);
  cuser* find(int cfd);
  list &lt; cuser* &gt; * getclientlistptr() {
    return &amp;_clientlist;
  }

};
</code></pre>

<p>In this header file it calls init() function in the constructor declaration. I can assume that it will call the function whenever user create cuserlist class but don't see the exact moment when it is going to be called and how it works.</p>

<p>Thanks in advance.</p>
