This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
RE:Class Name
Posted by Kishori Sharan on July 31, 2000 at 8:20 PM
Hi Can you please explain your problem with an example? If you are intending to write a generic static method in a class so that it will be inherited then you always have the class name or the object of that class using which you will call that static method. If you have class name then you can use Class.forName ( "yourclassname" ) to get an object of class "Class" for your object. You can use the same method forName () within the static method too to get the Class object. I think this is not what you want. Please explain the situation in which you want this kind of functionality. Thanx Kishori
Replies:
- CLASSNAME IAIN August 07, 2000 at 9:44 AM
(1)
- ClassName Mahesh August 29, 2000 at 9:19 PM
(0)
|