Created
March 21, 2018 06:27
-
-
Save bufferings/e9c757c90631149650d3e082803bad99 to your computer and use it in GitHub Desktop.
var遊び
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
jshell> Var var(){return new Var();} | |
| created method var(), however, it cannot be referenced until class Var is declared | |
jshell> class Var{Var1 var = new Var1();} | |
| created class Var, however, it cannot be referenced until class Var1 is declared | |
jshell> class Var1{Var var(){return new Var();}} | |
| created class Var1 | |
jshell> var var = var().var.var(); | |
var ==> Var@58651fd0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment