Does inheritance imply a deep copy of memory?
<p>I have a class <code>foo</code> and <code>bar</code>. <code>foo</code> has a resource. When <code>bar</code> inherits from <code>foo</code> will it too have a deep copy of the memory? Or do I have to call the constructor of <code>foo</code> from <code>bar</code>s default-constructor?</p>

<pre><code>class foo
{
    char *item;
    public:
        foo() : item(new char[5]) {}
};

class bar : public foo {};
</code></pre>
