Reference
Also written: references
What a variable of a class type holds: directions to where an object lives in memory, not the object itself. Copying the variable copies the reference, so both point to one object.
Also written: references
What a variable of a class type holds: directions to where an object lives in memory, not the object itself. Copying the variable copies the reference, so both point to one object.