Passing in a primitive type variable like a string or a number, the value is passed in by value. Passing in an object, however, passes it in by reference.
Here is an example:
Knowledge should be free and accessible
Passing in a primitive type variable like a string or a number, the value is passed in by value. Passing in an object, however, passes it in by reference.
Here is an example: