* this means that reference of this pointer.If a user wants to return reference to the current object from a function,in such cases reference is taken from this pointer like(*this).
Example:
student student::setRollNo(int aNo)
{
...
return *this;
}
What is the meaning of it. Please explain it with help of exampleView more random threads:
- C++ have Virtual Function vs Function Pointer call 2011
- Dear sir please clear the terms i++ and i-- what are their...
- which situation we use stack.h and why we use stack.cpp
- Create new variables with a loop? in c++ 2011 -12
- Please explain the term stacking overhead in C++
- What is abstraction in c++ 2011?
- What does hierarchy mean in concerned with Classes ?
- forward declaration instead of header files in c++ 2011
- why we use class in C++ May 2011 ?
- offline function in C++
Sponsored Links
* this means that reference of this pointer.If a user wants to return reference to the current object from a function,in such cases reference is taken from this pointer like(*this).
Example:
student student::setRollNo(int aNo)
{
...
return *this;
}
There are currently 1 users browsing this thread. (0 members and 1 guests)