Class Instatiation through External Class File
I have Java classes stored in a known directory. These classes share a common method Signature. At the run time, based on certain parameters, I would like to instantiate one of them and call the common method. How would I achive this through simple Java calls ? Can somebody assist me ?

Software/Hardware used:
ASKED: March 2, 2005  4:16 AM
UPDATED: March 3, 2005  4:50 PM

Answer Wiki:
If I understand what you've set up, it sounds like you should have a base class with the common method and then have the other classes extend the base class. Then all you do is instantiate the desired class and call the comon mehtod. You're other option is to use the implements option to make certain all you methods and their signatures are implemented the same.
Last Wiki Answer Submitted:  March 3, 2005  4:50 pm  by  TheQuigs   0 pts.
All Answer Wiki Contributors:  TheQuigs   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _