title: C++ create array of objects (from different classes)
body: <p>I need to create a array that holds objects from multiple classes.</p>
  
  <p>Example</p>
  
  <pre><code>class baseClass
  {
     //
  };
  
  class first : baseClass
  {
     //
  };
  
  class second : baseClass
  {
     //
  };
  </code></pre>
  
  <p>How do I create array that can hold <code>first</code> and/or <code>second</code> object inside it?
  <br /></p>
  
  <p>It is somewhat of a home-task for me so I am forced to use arrays, I already searched and know that it is done with boost libraries ans such but I have no option here guys...</p>