1.

What is function object?(a) An object with a single function(b) An object with only functions(c) An object with more than one function(d) An object with no functionsThis question was addressed to me during an online exam.Enquiry is from Object Use in chapter Object of Object Oriented Programming

Answer»

The CORRECT CHOICE is (a) An object with a single function

The best I can explain: A function object is an object with single function. In C++ a function object can be like OPERATOR() function. This acts more like a function RATHER than an object.



Discussion

No Comment Found

Related InterviewSolutions