Say if I have a class named cube which refers to a 3D cube, and it has a private member data called _height. Within the class I tried to use
this->_height
and it works. (I know '_height' along is enough. I just want to try more about 'this' pointer). However when I use
*this._height
inside the class. It reports error. 'this' is a pointer points to the object in use thus 'pointer->member' method is valid. Meanwhile '*this' should be the object itself, but why it forbids me to use the '.' (dot) method?