Creating class objects
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6713637/heap-vs-stack-allocation">Heap vs Stack allocation</a>  </p>
</blockquote>



<p>If I have the following class definition</p>

<pre><code>class Student
{
string UniversityId;
string firstname;
string lastname;
};
</code></pre>

<p>What are the advantages and disadvantges of creating the Student Object on the stack or on the heap.</p>
