Link to home
Start Free TrialLog in
Avatar of techsuppoprt
techsuppoprt

asked on

Creating collection of classes

Hi Experts.
I need a little help here please.
I have a database processing app here with a few dozens of static classes. Each class basically represents a class. All classes have a simular structure..
I need to be able to loop through all those classes somehow to execute them. I realize i can just write out something like:
class1.execute();
class21.execute();
class3.execute();
class4.execute();
.
.
.
but I have a feeling there must be an easier way. Maybe I can connect them all with the interface somehow ? create a collection and loop through ? I'm not an expert on this yet so please help.
Thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of techsuppoprt
techsuppoprt

ASKER

Thank you.
Thank answered the question I asked but my problem is I didn't ask correctly...
I'll just post another question.
Thanks again.