Scope Rules
Methods and instance variables have class scope.
- Instance variables are global to the methods of the class in which they are defined.
- If a local variable in a method has the same name as an instance variable, the instance variable is hidden or is shadowed by the local variable.
Block scope begins at the identifier’s declaration and end at the terminating right brace of the block.