Please enable JavaScript to use CodeHS


CodeHS Lessons

When an actual parameter is a reference to an object, the formal parameter is initialized with a copy of that reference, not a copy of the object. If the reference is to a mutable object, the method or constructor can use this reference to alter the state of the object.

11.6 Writing Methods
12.12 Objects vs Primitives
6.12 Objects vs Primitives
4.12 Objects vs Primitives