Quote:
The this pointer is a hidden pointer inside every class's non-static function which points to the class's particular object through which the concerned function is called.
Example:
Code:
class A
{
private:
int rollNumber;
public:
A (int rollNum)
{
rollNumber = rollNum;
}
void setRollNumber (int rollNum)
{
rollNumber = rollNum;
}
};
...