PPT Slide
Local variables (declared as a part of method):
- Can be seen only from within their method.
- Outside of their method, their identifiers have no meaning.Instance and Class variables (declared as part of a class, but not within a particular method):
- Can be seen from anywhere in the instance.
- This means they can be seen from within
methods defined within the class
without passing them to the
- May or may not be visible beyond (soon).
Within a method, local variable
identifiers take precedence over