Please enable JavaScript to use CodeHS

AP CSA: MOD-2.F.5

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.

Standard
5.6 Writing Methods
Standard
11.6 Writing Methods
Standard
11.6 Writing Methods