Creating array of pointers to class object
<p>Question:</p>

<p>Create an array of at least four pointers to Reader objects. Use the New operator to create at least four pointers to derived class objects and assign them to the array.</p>

<p>I'm not sure If I did it right or not.</p>

<p>Reader is the base class. John, David, Daniel, Mark are the derived class</p>

<pre><code>int main(void)
{
     Reader *obj[4];

    obj[0] = new John();
    obj[1] = new David();
    obj[3] = new Daniel();
    obj[2] = new  Mark();

}
</code></pre>

<p>Would this be right???</p>
