Qus:    Limitations in using Params Keyword?
Dec 21, 2020 15:18 2 Answers Views: 91 DIVYA

 There are three limitations in using params keyword-



1. We can send only comma separated list of arguments to a method.

2. No additional parameters are permitted after the params keyword in a method declaration.

3. Only one params keyword is permitted in a method declaration.

Prev Next
Answers (2)
PARTH Dec 22, 2020 07:11
Answer:   There are three limitations in using params keyword-

1. We can send only comma separated list of arguments to a method.
2. No additional parameters are permitted after the params keyword in a method declaration.
3. Only one params keyword is permitted in a method declaration.

PADMAKEECHU Dec 22, 2020 10:15
Answer:   Once the Param keyword is used in method declaration additional parameters are not allowed.
Params type can only be single dimensional array.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect