class X
{
void method1(){}
void method2(){}
}
class Y
{
void someMethod()
{
/*
What is this type below called?
Anonymous class or
Anonymous-Inherited class or what???
*/
X xInstance = new X(){
@Override
void method1()
{
System.out.println("What kinda class is this ?");
}
}
}
}