Do methods in class instances take a place in memory?
<p>When I have a class like this:</p>

<pre><code>class test {
    private int _id  = 0 ; // 4 bytes
    private int _age = 0 ; // 4 bytes
}
</code></pre>

<p>I'm sure that each instance of it, will take more than 8 bytes in memory because of the 2 integers.</p>

<p>But what about methods? If I have a class with a million methods, and  2 instances of it, are the methods going to take twices place in memory ?</p>

<p>How does it work? If that makes any since.</p>

<p>Thank you.</p>
