Multiple choice

What is “operator overloading”?

  1. To re-define built-in operators in a programming language (i.e. C++) to work with objects.

  2. An event that arises when a computer is overheated.

  3. A C++ program to process data in parallel.

  4. A strategy in C++ to avoid deadlock.

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

Operator overloading allows programmers to redefine how built-in operators (like +, -, *, etc.) work with user-defined objects or data types. This enables intuitive syntax (e.g., adding complex numbers with a+b) and is a key feature of C++ polymorphism. It has nothing to do with overheating, parallel processing, or deadlock avoidance.