...
OOPS
August 29, 2024
OOPS
August 29, 2024
OOPS
August 29, 2024
OOPS
August 29, 2024

OOPS

Question 57
A function object :
A
is an instance of a class for which operator ( ) is a member function.
B
is an instance of a class for which operator → is a member function.
C
is a pointer to any function
D
is a member function of a class
Question 57 Explanation: 
A function object is an object to which the function call operator can be applied. Typically, it is a class that defines the function call operator (operator()()) as a member function. When a function object is used as a function, the function call operator is invoked whenever the function is called.
Correct Answer: A
Question 57 Explanation: 
A function object is an object to which the function call operator can be applied. Typically, it is a class that defines the function call operator (operator()()) as a member function. When a function object is used as a function, the function call operator is invoked whenever the function is called.

Leave a Reply

Your email address will not be published. Required fields are marked *