This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
" Object obj = Class.forName("Manoj").newInstance();" Their is a problem with this line i suppose.If we create a instance by new its working instead of the above.
Ganesh Kumar
Manoj Paul
Ranch Hand
Joined: Jan 18, 2007
Posts: 109
posted
0
But Ganesh, I don't want to use the new operator here, because we can create an object without using new operator too. Run the program, you can see that an object is already created, because the constructor is called in the process. But when i tried to access the method watch() with the help of the object obj, its not working, thats what i want to know and what should i do to access the method.
But I am yet to get any help. Thank you
Ganesh Kumar
Ranch Hand
Joined: Jul 02, 2007
Posts: 113
posted
0
Ya manoj what you said is right.Lets wait anyone will help us