Memory management for a class
<p>I want to know from this program how the memory is allocated and deallocated in C#.</p>

<pre><code>class A
{
    public static m1(int x, int y)
    {
        int x, y;
        return x+y;
    }
    int m2(int p, int q)
    { 
        int p, int q;
        return p+q;
    }
    int x=10; 
    int y;
    const int x=10;
    readOnly y=20;

    public int x
    {
        get {y}
        set {y=value}
    }
}

class B
{
    A a=new A();// what happens when i creat object like this how memory is allocated and what is allocated memory 

}
</code></pre>
