|
Can I use vectors to store multiple types of objects
Can I use vectors to store multiple types of objects? Say I have two classes, cat & dog. Could someone show me an example of how to create a vector, and then add instances of each object type to the vector?
Thanks so much,
Nathand
|