Array: Storing Objects or References
<p>As a Java developer I have the following C++ question.</p>

<p>If I have objects of type A and I want to store a collection of them in an array, 
then should I just store pointers to the objects or is it better to store the object itself?</p>

<p>In my opinion it is better to store pointers because:
1) One can easily remove an object, by setting its pointer to null
2) One saves space.</p>
