class InterDemo1
{
public static void main(String[] args)
{
InnerTest.function();
}
}
abstract class Inner
{
abstract void method();
}
class InnerTest
{
static void function()
{
new Inner()
{
public void method()
{
System.out.println("method");
}
}.method();
}
}
|
|