Please enable JavaScript to use CodeHS

AP CSA: MOD-2.F.1

CodeHS Lessons

Methods can only access the private data and methods of a parameter that is a reference to an object when the parameter is the same type as the method’s enclosing class.

11.6 Writing Methods
12.4 Writing Classes
6.4 Writing Classes