What are the ways to invoke a method?
Answers
Answered by
1
Answer:
Invoking Methods
Create a Class object that corresponds to the object whose method you want to invoke. See the section Retrieving Class Objects for more information.
Create a Method object by invoking getMethod on the Class object. ...
Invoke the method by calling invoke .
Answered by
1
Answer:
Invoking Methods
Create a Class object that corresponds to the object whose method you want to invoke. See the section Retrieving Class Objects for more information.
Create a Method object by invoking getMethod on the Class object.
Invoke the method by calling invoke.
Similar questions