类型名称后面的括号是否与new有所不一样? - Do the parentheses after the type name make a difference with new?

问题:

If 'Test' is an ordinary class, is there any difference between: 若是“测试”是普通类,则之间是否有任何区别: 测试

Test* test = new Test;

and spa

Test* test = new Test();

解决方案:

参考一: https://stackoom.com/question/2bKD/类型名称后面的括号是否与new有所不一样
参考二: https://oldbug.net/q/2bKD/Do-the-parentheses-after-the-type-name-make-a-difference-with-new