+ 1
Sense of using 'this' ?
If we are able to complete our desired task without making a explicit call to 'this' then where is the need to use it?
1 Odpowiedź
+ 3
The simplest case is to differentiate method arguments from object attributes. E.g.:
void setName(name) {
this->name = name;
}