Interview question: In how many ways you can pass parameters to a method?
There are three ways we can pass parameters to a method: Value parameters – This method copies the actual value of an argument into the formal parameter of the function. In this case, changes made to the parameter inside the function have no side effect on the argument. Reference parameters – This method copies the…
Read More “Interview question: In how many ways you can pass parameters to a method?” »