Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overloaded function in classic asp JScript

Is it possible to have an overloaded function in classic asp JScript

like image 860
Sasha Avatar asked Jan 10 '10 11:01

Sasha


People also ask

How do you do an overloaded function?

You overload a function name f by declaring more than one function with the name f in the same scope. The declarations of f must differ from each other by the types and/or the number of arguments in the argument list.

What are the restrictions on overloaded function?

Restrictions on overloadingAny two functions in a set of overloaded functions must have different argument lists. Overloading functions that have argument lists of the same types, based on return type alone, is an error.

Is overloading allowed in JavaScript?

Unlike the other programming languages, JavaScript Does not support Function Overloading.


1 Answers

No. The last function will overwrite/replace the functions with the same name defined before it.

Read How does Classic ASP (vbscript) handel duplicate Function names

like image 86
Christian V Avatar answered Sep 20 '22 00:09

Christian V