Lecture 4 - Slide 28 : 40 |
In non-static member functions, this is a pointer to the object on which the function has been invoked
![]() | Class Point - almost the usual header file. |
![]() | Class Point - a variant with explicit use of this. |
![]() | A sample use of points, with emphasis on moving. |
The use of this in C++ is similar to the use of this in both C# and Java