Overloaded methods are those that appear to have the same name, but that have different formal parameter types (or result value type, if the language supports overloading on result type). The "real name" of the method is made up by concatenating the identifier used to name the method with an encoding of the types, so this works only for languages in which the types are statically known. Overloading is generally confusing; it is better practice to simply come up with more meaningful names for ones methods, that is, names that explain the role of the parameters. For example in the following C++, class geometry have two method named "area". But their parameter list is different which distinguish the methods. Many other languages provide this feature.
#includeRead more about this topic: Method (computer Science)
Famous quotes containing the words overloaded and/or methods:
“At bottom there is in Joyce a profound hatred for humanitythe scholars hatred. One realizes that he has the neurotics fear of entering the living world, the world of men and women in which he is powerless to function. He is in revolt not against institutions, but against mankind.... Ulysses is like a vomit spilled by a delicate child whose stomach has been overloaded with sweetmeats.”
—Henry Miller (18911980)
“Commerce is unexpectedly confident and serene, alert, adventurous, and unwearied. It is very natural in its methods withal, far more so than many fantastic enterprises and sentimental experiments, and hence its singular success.”
—Henry David Thoreau (18171862)