Determining classes in existence
Posted on 2004-10-15
I'm developing a one-program-does-everything system. The idea is mainly to get away from my usual write a bit of code to solve a problem and then forget it, or where it was done.
At present I'm doing this by creating various classes with the required functionality and, on a very basic scale, allowing them to communicate with each other.
I'm using a single form to create instances of the classes which may in turn create instances of other classes.
My question is : can I determine what classes are in existence (and use them) and from where can I do this (I'm assuming at the moment that classes instantiated from the form are "visible" to the form and classes instantiated from 'other' classes are "visible" to the 'other' classes only)?
I have heard mention of using collections to do something like this. If I understand correctly, this is also heading in the direction of "persistence" that I have read bout in relation to ActiveX controls.