FileDocCategorySizeDatePackage
PublicInnerClassAccess.javaAPI DocExample1151Sun Dec 14 22:47:40 GMT 2003oreilly.hcj.nested

PublicInnerClassAccess

public class PublicInnerClassAccess extends Object
Demonstrates External Access to Inner Classes.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.3 $

Fields Summary
Constructors Summary
Methods Summary
public static final voidmain(java.lang.String[] args)
Main method.

param
args The arguments.

		// MonitorScreen.PixelPoint obj = new MonitorScreen.PixelPoint(); // <= Compiler error.
		MonitorScreen screen = new MonitorScreen();
		MonitorScreen.PixelPoint pixel = screen.new PixelPoint(25, 40);
		System.out.println(pixel.getX());
		System.out.println(pixel.getY());