Make sure the methods are either both static or non-static.
Mike Gershman
SCJP 1.4, SCWCD in process
Originally posted by Layne Lund:
First of all, tobias is correct that the "this" keyword isn't required. However, I personally like to use it anyway. It makes the code "self-commenting" because the location of the method is obvious.
Mike Gershman
SCJP 1.4, SCWCD in process
Originally posted by Warren Dew:
Shouldn't the location of the method already be obvious because of the lack of a qualifier - class name or variable name - ahead of the function?
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Originally posted by Joel McNary:
In Java, yes. In other languages (like C++), no. I try to keep my coding styles as similar as I can across languages, so I always use "this."
