abstract class Inner
{
public abstract void method();
}
class Test
{
private Inner inner=new TestInner();
new Inner()
{
public void method()
{
System.out.println("Inner");
}
}
public static void main(String[] args)
{
new Test().method().method();
}
public Inner method()
{
return inner;
}
}
|
|