+ 1
what is the difference between call by value and call by reference in methods?
1 Respuesta
+ 1
Call by value: the function manipulates a variable that is a copy of the variable entered as parameter.
Call by reference: the function directly manipulates the variable passed, which means that any change made will persist after the call.