Please enable JavaScript to use CodeHS

AP CSA: VAR-1.G.2

CodeHS Lessons

When there is a local variable with the same name as an instance variable, the variable name will refer to the local variable instead of the instance variable.

11.8 Scope and Access
12.10 Local Variables and Scope
5.8 Scope and Access
6.10 Local Variables and Scope
4.10 Local Variables and Scope