Overloading the function operator - Requires a class with an overloaded operator
Q. C++: Overloading the function operator- Published on 24 Jun 15a. Requires a class with an overloaded operator.
b. Requires a class with an overloaded [ ] operator.
c. Allows you to create objects that act syntactically like functions.
d. Usually make use of a constructor that takes arguments.
ANSWER: Requires a class with an overloaded operator.
An overloaded declaration is declared with the same name as the previously declared declaration in the same scope except that both the declarations have different arguments and different definition.