What is this?

01 January 1989

New Image

Every class member function in C++ contains an implicit this pointer. The this pointer contains the address of the class object which has invoked the member function. Programmers new to C++ often find the idea of the this pointer confusing and are not sure how they might make use of it in their programming. This article looks at how designers might take advantage of the this pointer in the implementation of a class.