Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Javascript (http://siteownersforums.com/forumdisplay.php?f=24)
-   -   What is Overloading? (http://siteownersforums.com/showthread.php?t=165356)

Shivangi Panwar 02-22-2016 10:43 PM

What is Overloading?
 
What is Overloading?

aajokhio 03-23-2016 12:19 AM

Dear OverLoading Means Update with Parent Work, For Example, Parent type single method or constructor, and you will use same Method Name or Constructor update them. That's mean OverLoading.

Aashi 08-08-2016 12:06 AM

Overloading is the term used when more than one method exists with the same name.

thuha123 08-15-2016 03:35 AM

Quote:

Originally Posted by aajokhio (Post 539467)
Dear OverLoading Means Update with Parent Work, For Example, Parent type single method or constructor, and you will use same Method Name or Constructor update them. That's mean OverLoading.

like! very good

arshi1586 09-20-2016 02:56 AM

Overloading is a concept used to avoid redundant code where the same method name is used multiple times but with a different set of parameters. The actual method that gets called during runtime is resolved at compile time, thus avoiding runtime errors

kunalkumar 10-10-2016 02:30 AM

Checking / Switching inside the function is not OVERLOADING. The concept of overloading: In some programming languages, function overloading or method overloading is the ability to create multiple methods of the same name with different implementations. ... For example, doTask() and doTask(object O) are overloaded methods.

chrisbell12 10-20-2016 03:57 AM

Thanks for the the information.

Dubey675 11-01-2016 11:24 PM

Method Overloading is a feature that allows a class to have two or more methods having same name, if their argument lists are different. Method overloading is also known as Static Polymorphism.

sonvi.belani 03-16-2017 12:03 AM

Hi,

In some programming languages, function overloading or method overloading is the ability to create
multiple methods of the same name with different implementations. Calls to an overloaded function will
run a specific implementation of that function appropriate to the context of the call, allowing one
function call to perform different tasks depending on context.

For example, doTask() and doTask(object O) are overloaded methods. To call the latter, an object must
be passed as a parameter, whereas the former does not require a parameter, and is called with an empty
parameter field. A common error would be to assign a default value to the object in the second method,
which would result in an ambiguous call error, as the compiler wouldn't know which of the two methods
to use.

Another appropriate example would be a Print(object O) method. In this case one might like the method
to be different when printing, for example, text or pictures. The two different methods may be overloaded
as Print(text_object T); Print(image_object P).

Thanks

JamesLiam 05-23-2017 04:48 AM

Overloading refers to the ability to use a single identifier to define multiple methods of a class that differ in their input and output parameters. Overloaded methods are generally used when they conceptually execute the same task but with a slightly different set of parameters.


All times are GMT -7. The time now is 06:00 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.