CSC300 / CSC402: Assignment and Parameters with Base Types [14/24] |
Very Important!
Both assignment, and passing a base type value as an argument to a method with a base type argument, results in copying the data to a new place in memory.
Modifying the data in the new place in memory does not affect the memory where the data was copied from!
|
Note: The assignment at line 13 has not been done yet!
The variable y
in the main program still contains the value it had before f
was called.