Created
March 7, 2017 11:59
-
-
Save asd1245dss/13c81ad3b941abe69179db4051110606 to your computer and use it in GitHub Desktop.
In Java,constructor code block has a high priority than constructor method
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
构造块2 | |
构造块1 | |
构造函数 | |
构造块2 | |
构造块1 | |
构造函数 | |
构造块2 | |
构造块1 | |
构造函数 | |
Child | |
Parent | |
Child | |
Child | |
Java inherit can't override fields | |
Child |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment