Check out example codes for "self in c++". It will help you in understanding the concepts better.

Code Example 1

// Using the * operator to get the actual instance
auto result = (*this).do_something();

// Using the -> operator to dereference and get/invoke member simultaneously
auto result = this->do_something();

Learn ReactJs, React Native from akashmittal.com