Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The 'Class' and 'Method' classes

 
Chandra Kaye
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I dont know whether this has to go in the beginners/indermediate/advanced. I would like to know when and why anyone would need to use the above two classes?? Method class objects represents methods of an object. We can use the invoke() method of the Method class object to invoke the method represnted by the Method object on some other object. Since the same functions can be performed by just creating objects and calling their methods through the object_name.method() format, why do we really need these classes??
Thanks in advance.
Regards
Chandra
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings Chandra,
Welcome to JavaRanch, the absolute best site on the www for Java information. We don't have many rules around here but we do have one. Please change your display name to conform with the JavaRanch naming policy of a real first and last name.

I dont know whether this has to go in the beginners/indermediate/advanced.

It can be tough sometimes to decide, but we discourage multiple posts of the same topic. So in the future, please choose one forum and post there.
Since you have this posted in the Begginers forum, I'm going to lock this one and refer repliers to The 'Class' and 'Method' classes .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic