Basic HTML version of Foils prepared 19 July 97

Foil 6 Java Language Inner Classes

From Overview of JDK Version 1.1 Extensions CPS616 -- Information Track of CPS -- Spring Semester 97. by Nancy J. McCracken


JDK 1.1 has fixed annoying problem of having to create a totally separate class for such structuring things as creating a class to handle a subcomponent of the applet window. You can now create such classes locally within the applet as an inner class.
  • Only one instance is created of an inner class.
  • The inner class can refer to instance variables of the enclosing class.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998