Sumit Garg
August 23rd, 1999, 04:28 AM
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
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