Should I use «this.» keyword in OOP programing where it's possible to skip it? Any benifits of using it? [duplicate]
Possible Duplicate:
开发者_如何学JAVA When do you use the “this” keyword?
In OOP sometimes we can write this.PropertyName = VALUE and sometimes we can skip this. and just write PropertyName = VALUE.
My questions:
Should we try always to use
this.?Does using / writing
thishave any effect on application performance or does it just make the code a little bit clearer?
There shouldn't be any difference in performance. Its purely a style decision.
加载中,请稍侯......
精彩评论