OOPS
August 29, 2024OOPS
August 29, 2024OOPS
Question 57
|
A function object :
is an instance of a class for which operator ( ) is a member function.
|
|
is an instance of a class for which operator → is a member function.
|
|
is a pointer to any function
|
|
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.
Subscribe
Login
0 Comments