Computer Science, asked by Tushar30218, 1 month ago

What are the ways to invoke a method?

Answers

Answered by minakshideka1117
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 DaRvl
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