What functions does a C++ compiler generate for you if you didn't provide
<blockquote>
  <p><strong>Possible Duplicate:</strong>
  <a href="http://stackoverflow.com/questions/4044275/how-many-default-methods-does-a-class-have">How Many default methods does a class have?</a></p>
</blockquote>



<p>Given a class as follows:</p>

<pre><code>class ClassA
{
    private:
      int i;
};
</code></pre>

<p>I would like to know what functions a compiler will generate for you. Here is my guess:</p>

<pre><code>1&gt; default constructor [ ClassA() ]
2&gt; destructor          [ ~ClassA() ]
3&gt; assignment operator [ ClassA&amp; operator=(const ClassA&amp; rhs) ]
4&gt; copy constructor    [ ClassA(const ClassA&amp; rhs) ]
</code></pre>

<p>Do I get it right?</p>
