Someone please tell me the difference between this.something and this->something
Printable View
Someone please tell me the difference between this.something and this->something
this.something is an error and this->something is not. this is a pointer so if you want to use the dot operator, you have to dereference the pointer: (*this).something.