鉴于:
myObject hello = new myObject();
Run Code Online (Sandbox Code Playgroud)
在代码行的第二部分再次指定myObject有什么意义?
你有没有做过这样的事情:
myObject hello = new anotherObject();
Run Code Online (Sandbox Code Playgroud)
为什么不呢
myObject hello = new();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
202 次 |
| 最近记录: |