This works
Most importantly, the constructor must return the instance created by new.
Your last example results in infinite recursion, because the constructor keeps calling itself.
This works
Most importantly, the constructor must return the instance created by new.
Your last example results in infinite recursion, because the constructor keeps calling itself.