a) return_type operator(arguments)();
b) return_type operator(arguments);
c) return_type operator()(arguments);
d) return_type operator(Class_name)(arguments);
1 thought on “What is the correct function prototype of () operator overloading?”
Leave a Comment
You must be logged in to post a comment.
c
Explanation: The correct syntax of overloading a () operator in a class is as follows:
return_type operator()(arguments){}