0
Use of this
why is it not referencing the 'legs' variable using 'this.legs'?
4 Antworten
+ 1
generally you use the term this to remove ambiguity, for example when your parameter has the same name than the member variable
0
so basically it's not mandatory
0
ofcourse it is not..anyone use it just to represent the current object
0
that's correct, it is not mandatory but in some situations you will have to use it to point to the correct variable