title: Do methods in class instances take a place in memory?
body: <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 consume 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 twice as much place in memory ?</p>
  
  <p>How does it work?</p>
  
  <p>Thank you.</p>