C++ myPointerToClassVariable3.cpp , uses this pointer

Objectives :

Step: 1 Create a source file.

Step: 2 Edit and save Source file

Step: 3 Runtime Views:

Step: Brief Discussion:

This pointer brings flexibility, meaning Ram is a little boy, and this is his book or belongings. Here momentarily "this" represents Ram and no one else. Sham is a grownup, he has this book. In the last scenario, "this" is a reference of Sham, and will get Sham belongings, like this->Sham-Pencil,   this->Sham-Bike.

In the above scenario, in a function querying  where is Shams-bike , the function is allowed to return query  return *this; meaning sending the address of an member object.

The rest I intend to leave up to this illustration, showing "It is a query, and this is the answer".