Skip to content

Instantly share code, notes, and snippets.

@holmeszyx
Created November 21, 2012 06:08
Show Gist options
  • Select an option

  • Save holmeszyx/4123335 to your computer and use it in GitHub Desktop.

Select an option

Save holmeszyx/4123335 to your computer and use it in GitHub Desktop.
StructureTest
public class StructureTest {
public static void main(String[] args) {
ABCC abc = new ABCC();
System.out.println(abc.getCC());
}
public static abstract class ABC{
private String tt = null;
public ABC() {
// TODO Auto-generated constructor stub
tt = new String("what the hell");
dodo();
}
public abstract void dodo();
public String getTT(){
return tt;
}
}
public static class ABCC extends ABC{
private String cc = null;
public ABCC() {
// TODO Auto-generated constructor stub
super();
System.out.println("cc id done");
}
@Override
public void dodo() {
// TODO Auto-generated method stub
cc = new String("here is abcc");
}
public String getCC(){
return cc;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment