Multiple choice

What is the OOP concept called, where different operators have different implementations depending on their arguments?

  1. Namespace

  2. Multiple inheritance

  3. Template

  4. Operator overloading

  5. Exception handling

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In object-oriented programming, operator overloading—less commonly known as operator ad-hoc polymorphism—is a specific case of polymorphism, where different operators have different implementations depending on their arguments. Operator overloading is generally defined by the language, the programmer, or both.