Intermediate Object-Oriented Programming Concepts
Q62 / 100

What is "operator overloading"?

Correct! Well done.

Incorrect.

The correct answer is A) Defining custom behavior for operators (like +, -, ==) when applied to objects of a user-defined class

A

Correct Answer

Defining custom behavior for operators (like +, -, ==) when applied to objects of a user-defined class

Explanation

Operator overloading lets classes define what operators mean for their instances, e.g. making "+" concatenate or combine two custom objects.

Progress
62/100