Last active
December 19, 2015 05:49
-
-
Save alea12/5906612 to your computer and use it in GitHub Desktop.
コンストラクタの説明用
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 hoge { | |
| public static void main (String[] args) { | |
| System.out.println("Starting function main."); | |
| System.out.println("Creating instance from Fuga class."); | |
| Fuga fuga = new Fuga(); | |
| System.out.println("Ending function main."); | |
| } | |
| } | |
| class Fuga { | |
| Fuga () { | |
| System.out.println("This is fuga constructor."); | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment