|
|
Local variables in methods | We start with a brief overview of local variables, and in particular
their initialization compared with the initialization of instance variables contained in classes. |
Variables declared in the statements part - the block - of a method are called local variables |
|
In this example we illustrate differences between
local variables and instance variables with respect to initialization. |
Read more about local variables in the text book version of this material. |