How to create an array in which the type is abstract but the objects will be derived classes (C++)
<p>my issue is that i need to be able to create an array of 100 objects. However the objects could be one of four different objects all of which are ultimately derived from an abstract class. I could use 4 separate arrays but it appears as if my teacher only wants us to use one array. </p>

<p>Class structure is : DVD &amp; VHS are derived from Video, CD &amp; Cassette are derived from Audio, Audio &amp; Video are derived from Media. Audio, Video, and Media are all abstract.</p>
