ok, so the title is a bad joke, anyways i am reading a tutorial on classes and well here's what it says
the tutorial is here and i was wondering whats up with the this-> pointer?every object has a special pointer call "this", which refers to the object itself. So the members of the Dog class can be referred to as this->age or this->weight, as well as, age or weight. If there is no ambiguity, no qualification is required. So in the getWeight method, "weight" can be used instead of "this->weight". In the setWeight method an ambiguity exists. Since the parameter passed is "weight" and there is a class member "weight", the "this" pointer must be used. Finally, a note about syntax. If "this" is a pointer to a class, then the member selection operator, "->", can be used to access the contents of its members.
edit: i wasn'tvery clear before, i want to know why i would need this-> in my code?