Hi,
How do i access th method of the anonmyous class
This is the code..
interface mycode
{
void display();
}
public class enclosing
{
public void mymehtod()
{
new mycode()
{
public void display()
{
System.out.println("display of anonmyous class");
}
}
}
public static void main(
String a[])
{
enclosing e = new enclosing();
??? // how do i access display()
}
}
-Sanjana