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
4.12 Objects vs Primitives
Standard
8.6 Writing Methods
Standard
6.12 Objects vs Primitives
Standard
11.6 Writing Methods
12.12 Objects vs Primitives
Standard
11.6 Writing Methods
18.12 Objects vs Primitives
Standard
6.12 Objects vs Primitives