i want to declare a parametrized method array or method list. This means that there will be a method array and i can call the method by using array’s index and at the same time i want to give a parameter to the method. How can i do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you know the method signature, you can do something like this:
Using an example of a method that takes in an
intand returns astring: