title: C++ Constructor
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1711990/what-is-this-weird-colon-member-syntax-in-the-constructor">What is this weird colon-member syntax in the constructor?</a>  </p>
  </blockquote>
  
  
  
  <p>If I define a class as shown below in C++:</p>
  
  <pre><code>class myclass
  {
  public: 
   myclass (unsigned int param) : param_ (param)
   {
   }
  
  unsigned int param () const
  {
   return param_;
  }
  
  private:
    unsigned int param_;
  };
  </code></pre>
  
  <p>What does the constructor definition:
  <code>myclass (unsigned int param) : param_ (param)</code> means and the benefit to the code?</p>