Parens on creating objects with no arguments
- Published:
The following syntax is often used to create a programmatic object:
new Example();
Actually, if arguments are not passed to constructor at all, parentheses after the class name are unneeded:
new Example;
This is applicable at least to JavaScript, PHP, and C++.