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.
\begin{program}
{\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
3/16/2000