Const (computer programming): Difference between revisions

Content deleted Content added
mNo edit summary
Footnotes: final
Line 165:
 
Since the address held in the <code>tableLookup</code> pointer can change implicitly, each deference might take us to a different ___location in a memory-mapped look-up table.
 
== Final ==
In [[Java]], a qualifer <code>final</code> states the variable is not assignable, as below:
 
final int i = 3;
i = 4; // this results in compiler-time error.
 
The variable with <code>final</code> must be initialized explicitly.
 
Unlike C++, a method with <code>final</code> merely means that the method would not be overriden.
 
==Footnotes==