Which of the following is correct about Functors?
A. Functors should not be declared outside the main function
B. Overloaded operator () function is not a member of the class
C. Functors should be declared global
D. Functors have a state
Answer: Option D

Join The Discussion