|
-
August 23rd, 1999, 04:28 AM
#1
Instantiation of Objects at run Time.
Hello,
I am having a problem that I cant instantiate an object by the normal method of new [Classname](),
instead I have a variable which contains the name of the class whose object is to be instanttiated.
This is for sure that the Class whose object is to be fired will be present in the library.
To make my thing clear: e.g: consider the code
String var = new String("");
var = GetClassName();
// Now I cant say something like Object Obj = new var; where var has the name of the class whose object I can instatiate. I want to just fire that Obect's method after that.
Can U please make it as fast as possible because I know the solution is there but I am unable to implement anything on this.
Thanks a million
sumit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|