InterviewSolution
Saved Bookmarks
| 1. |
Can We Use This Pointer In A Class Specific, Operator-overloading Function For New Operator? |
|
Answer» No! The this pointer is NEVER passed to the overloaded operator new() member FUNCTION because this function GETS called before the object is CREATED. HENCE there is no question of the this pointer getting passed to operator new( ). No! The this pointer is never passed to the overloaded operator new() member function because this function gets called before the object is created. Hence there is no question of the this pointer getting passed to operator new( ). |
|