In Java, you can have a List of Objects. You can add objects of multiple types, then retrieve them, check their type, and perform the appropriate action for that type. For e
Well, you could create a base class and then create classes which inherit from it. Then, store them in a std::vector.