0

what is "this->", when and where it is used... Plz explain in detail

6th Oct 2016, 10:33 AM
prashant ramotra
prashant ramotra - avatar
2 Antworten
+ 1
this is actually used when you are writing a new member function for your class.this-> means that "object which using this function"
6th Oct 2016, 4:10 PM
Veysel Er
Veysel Er - avatar
+ 1
Update to your answer... arrow member selection operator (->) is used to access an object's members with a pointer.
10th Oct 2016, 6:34 PM
Patrick Augustin
Patrick Augustin - avatar