C++ | Operator Overloading | Question 9
(A) x = 3, y = 2
(B) Compiler Error
(C) x = 2, y = 3
Explanation: This a simple example of function call operator overloading.
The function call operator, when overloaded, does not modify how functions are called. Rather, it modifies how the operator is to be interpreted when applied to objects of a given type.
If you overload a function call operator for a class its declaration will have the following form: