FileDocCategorySizeDatePackage
InnerClass1.javaAPI DocExample509Sat Nov 25 12:55:42 GMT 2000None

InnerClass1

public class InnerClass1 extends Object
Demonstrate simple inner class. A named inner class is used to show that it can access non-local variables in the enclosing object.

Fields Summary
String
msg
Constructors Summary
Methods Summary
voiddoWork()


	  
		Inner i = new Inner();
		i.doTheWork();
		msg = "Goodbye";
		i.doTheWork();
	
public static voidmain(java.lang.String[] av)

		InnerClass1 p = new InnerClass1();
		p.doWork();