Created
November 21, 2012 06:08
-
-
Save holmeszyx/4123335 to your computer and use it in GitHub Desktop.
StructureTest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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