How can I define a class that can only be instantiated without parameters, and forbids instantiation when any parameters are passed to the constructor?
My goal is to enforce a certain set of classes that are supposed to be "simple" and be used as a template. As part of that, I don't want anything to be passed to the constructor during instantiation.
When anything is passed via constructor, I want things to fail (RunTime Error, Fatal Error, Static interpreter error check, etc)
class Template()
{
...
}
new Template(); // okay
new Template($anything); // must not work