|
![](/i/fill.gif) |
> Yeah, an identifier associates the variable name with a location
> in memory which contains a value. In POV a macro can be
> passed an identifier, so that associates the parameter name
> with the identifier name and location in memory.
>
> Most programming languages don't have different versions
> of variable assignment, the scope of a variable is usually
> determined by the location it was created.
>
>
In Java you can declare a variable in a block (the most usual usage is
for(int i=0;i<x.length;i++){..}) or a function, which is then the one to
be used. To access the class variable you use this.var. To access the
superclass variable/method instead you call super.var. A variable is
local to the class/method/block it was declared in.
--
the ultimate time-killer:
+a0.0 +am2 +r9
Johnny D
Post a reply to this message
|
![](/i/fill.gif) |