Overload

Verb · Development

Definitions

  1. To define multiple functions or methods with the same name but different parameter lists (type, number, or order of arguments), allowing the compiler or runtime to select the correct implementation based on the call signature. Common in C++, Java, and C#; distinct from overriding, which replaces an inherited method.

    In plain English: Giving the same function name multiple versions that accept different kinds of inputs, and the language picks the right one automatically.

    Example: "We overloaded the `send()` method — one version takes a string body, the other takes a byte array, so callers use whichever is convenient."

Related Terms