Inheritance and arrays

I would use an array of base class pointers and virtual functions for the common behaviour,
like @wildbill suggested already, if I wanted to have a list of different objects.