dcsimg
FunStuff
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Almagest_FUTT
Posted On:   Thursday, September 29, 2005 03:32 PM

public class FunStuff { static class A { public String string(){ return "BigA"; } public class SubA extends A { { System.out.println(string()); System.out.println(A.this.string()); System.out.println(super.string()); } public String string(){ return "SubA"; } } } static { new A(){ public String string(){ return "customA"; } }.new SubA(); } public void main(String[] a){} }    More>>
			
public class FunStuff {

static class A {

public String string(){
return "BigA";
}

public class SubA extends A {
{
System.out.println(string());
System.out.println(A.this.string());
System.out.println(super.string());
}

public String string(){
return "SubA";
}
}
}

static {
new A(){
public String string(){
return "customA";
}
}.new SubA();
}

public void main(String[] a){}
}
   <<Less
About | Sitemap | Contact