If you are viewing a variable reference with this, it will always point to an instance variable.
If a method declares a local variable with the same name as a class level variable, the first will be the โshadowโ of the last. To access a class level variable from inside the method body, use this keyword.
source
share