Overload (programming): Difference between revisions

Content deleted Content added
Glasnt (talk | contribs)
creating article.
 
+redir
 
(14 intermediate revisions by 10 users not shown)
Line 1:
#REDIRECT [[function overloading]] {{R from merge}}
To ''overload'' a method in [[programming]] is to have two or more methods with the same name, but are distingished by the number of variables they require.
 
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.
 
{{compu-prog-stub}}