next up previous
Next: Qualified Names Up: No Title Previous: Part II: Java Explorer

Unqualified Names

An unqualified name (it does not appear right of a ".") is defined,

If there is more than one definition, then the innermost definition is used.
{\vem int}~i;
\\ {\vem int}~foo({\vem int}~n)~\{
\\ ~~~~~~~~{\ve...
 ... return}~i;
\\ ~~~~~~~~\}
\\ ~~~~~~~~{\vem return}~foo(n--1);
\\ \}\end{program}
If an unqualified name is not defined it is assumed to be a Java class.

Christoph Zenger