C# basics - Memory Management
<p>I am new to the programming in C#.</p>

<p>Can anyone please tell me memory management about C#?</p>

<pre><code>Class Student
{

     int Id;
     String Name;
     Double Marks;

     public string getStudentName()
     {
         return this.Name;
     } 

     public double getPersantage()
     {
         return this.Marks * 100 / 500;
     } 
}
</code></pre>

<p>I want to know how much memory is allocated for instance of this class?</p>

<p>What about methods? Where they are allocated?</p>

<p>And if there are static methods, what about their storage?</p>

<p>Can anyone please briefly explain this to me?</p>
