title: Can I use vector of an object to store multiple types of objects that extends that object
body: <p>Can I use vector of an object to store multiple types of objects that extends that object , say I have a class animal and two classes cat and dog, and I created a <code>vector&lt;animal&gt;</code> , and I want to do : <code>add(new dog())</code> ,and <code>add(new cat())</code> , is that possible ?</p>