C++ interview question involving class pointers
<p>Lets say there is a base class pointer which is pointing to a base class object:</p>

<pre><code>baseclass *bptr;
bptr= new baseclass;
</code></pre>

<p>now if i do </p>

<pre><code>bptr= new derived;
</code></pre>

<p>what is the problem  here?</p>
