I have a lot of classes that extend an abstract base class. I would like to automatically create an instance of each one and add them into an array list of base class objects, so when I need to iterate through the list I can call the same method and do something else depending on what derived class the current object is. The problem is how to instantiate everything automatically as the number of derived classes can be high, about 40-50, maybe more afterwards. Any help would be appreciated.
EDIT: I added a commentary in which I explained more details about the question