storage allocated on class definiton
<p>Given the following definition:</p>

<pre><code> class C{};
</code></pre>

<p>How much space gets allocated?  What are the methods  created at this stage?  Now I thought space is not allocated until instantiation but I guess this is only partly true. 
Edit:
I checked in my compiler sizeof(C) but it is 1 byte though i am not creating any object of the class.</p>

<p>Try this link
<a href="http://www.informit.com/guides/content.aspx?g=cplusplus&amp;seqNum=319" rel="nofollow">http://www.informit.com/guides/content.aspx?g=cplusplus&amp;seqNum=319</a></p>
