Where does the member variable inside a class allocated?
<p>I have a class</p>

<pre><code>class Sample
{
   string strName;
};
</code></pre>

<p>If i create an object for the Sample using <code>Sample *obj = new Sample()</code> where does the string <code>strName</code> created? is it in stack or in heap?</p>
