At the top level, you will see the following constructs in a Java program:
Example:
Methods in class2 cannot access a private variable in another class !!!
I.e.: you can't access the private variables in a class directly using for example:
objVar.privateVarName = ....
in main( ).
So these private variables are hidden from the programmer that write the main( ) program....
They call this information hiding by a fancy term:
What this mean is:
stored in one or more files.
Schematically:
A function can access any variable that is defined outside a function
We will discuss this later in scoping rules