• Post Reply Bookmark Topic Watch Topic
  • New Topic

instantiating the class whose name is stored in a string  RSS feed

 
Harathi Rao
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a small requirement. I have a string variable holding the name of the class. I want to get the object of that class using that string variable.

For ex. String str = "Test";
I want get the object of class 'Test' using string variable str.

Please guide me how to do it

Thanks
Harathi
 
Scheepers de Bruin
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Harathi Rao
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot.. It solved my problem.

Harathi
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!