-
-
Save plucury/59cf6689a6494be6e1cf to your computer and use it in GitHub Desktop.
This file contains 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 Test { | |
{ | |
dosth(); | |
} | |
public Test() { | |
System.out.println("Father init"); | |
} | |
public void dosth() { | |
System.out.println("Fater before init"); | |
} | |
} |
This file contains 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 Test2 { | |
public static void main(String[] args) { | |
Test S = new Test() { | |
public void dosth(){ | |
System.out.println("Son before init"); | |
} | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment