When the program is run display function gets called. But not able to understand how?
class A
{
class B
{
void display()
{
System.out.println("display in B.....");
}
}
}
class Twenty extends A.B
{
Twenty(A temp)
{
temp.super();
}
public static void main(String args[])
{
A obj=new A();
Twenty abc=new Twenty(obj);
abc.display();
}
}
explain this program