Class Instatiation through External Class File

Tags:
Development
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 ?
ASKED: March 2, 2005  4:16 AM
UPDATED: March 3, 2005  4:50 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following