class a
{
public a get()
{
return this;
}
}
class b extends a
{
public static void main(String args[])
{
a a1=new b(){public a get(){return this;};
System.out.println(a1.getClass.getSuperClass.getName());
}
}
what is output for this program?
I can't understand this program
will u please explain
a a1=new b(){public a get(){return this;};
Above statement explains what concept?
Bookmarks