Re:The Best C++ Interview Question – Ever
by DanielBMarkham on Tuesday December 08, 2009 @07:40AM
(#983554)
The function's body is not part of the object itself
Most all of the time, yes. But the function could have been dynamically allocated to an instance of the object. You don't know from the definition of the question. A dynamic function, presumably, would be picked up by the dtor.
Most all of the time, yes. But the function could have been dynamically allocated to an instance of the object. You don't know from the definition of the question. A dynamic function, presumably, would be picked up by the dtor.