0
This Pointer
can we use this pointer with static functions? would you please give a brief description. thank you!
1 Resposta
+ 3
No... This pointer is passed in hidden way by compiler to your class methods (non-static) and it is a constant pointer to current caller object (object on which you call method)... because of this, static class functions (that dont belong to an object) dont get need of this pointer