JVM Languages
jqa399.txt
Associated article: Java Q&A
Tags: .NET JVM Languages
Published source code accompanying the article by Andy Wilson in which he discusses how you can use the Microsoft Java keyword "delegate." Also see JQA399.ZIP.
Java Q&A
by Andrew Wilson
Example 1:
public class Foo
{
private int exitVal;
public WindowAdapter createAdapter()
{
WindowAdapter a = new WindowAdapter()
{ /* Start of anonymous class definition */
// anonymous class derived from WindowAdapter
public void windowClosing()
{
exitVal = 1;
}
}; /* End of anonymous class definition */
...


