class Foo { public Foo(String s) {} } print new Foo()
为什么这段代码有效?
如果我使用基本类型的参数声明构造函数,则脚本将失败.
groovy
groovy ×1