title: Are data members allocated in the same memory space as their objects in C++?
body: <p>Say I've got a class like this:</p>
  
  <pre><code>class Test
  {
    int x;
    SomeClass s;
  }
  </code></pre>
  
  <p>And I instantiate it like this:</p>
  
  <pre><code>Test* t = new Test;
  </code></pre>
  
  <p>Is x on the stack, or the heap? What about s?</p>