0
It is possible define overloaded contructors?
2 Respostas
+ 2
No its not possible because ECMAScript does not handle missing arguments in the same way as more strict languages. The value of missing arguments is left as undefined instead of raising a error. In this paradigm, it is difficult/impossible to detect which overloaded function you are aiming for.
0
No