1. this is a pointer to the current object For example: other functions in the same class can be called using this->function name. 2. self is a pointer to the current class Generally, self is used to point to static variables in a class. Please also note that when using self to call static variables, you must use:: (field operator symbol) For example:
|