Overloading the function operator - Requires a class with an overloaded operator

Q.  C++: Overloading the function operator
- Published on 24 Jun 15

a. 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.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)