Possible Duplicate:
Heap vs Stack allocation
If I have the following class definition
class Student
{
string UniversityId;
string firstname;
string lastname;
};
What are the advantages and disadvantges of creating the Student Object on the stack or on the heap.