Some clarification of the above, again this bit of code:
public void someMethod() {
System.out.println("bar is " + this.bar); // line (B)
}
is equivalent to
Type: Posts; User: curmudgeon
Some clarification of the above, again this bit of code:
public void someMethod() {
System.out.println("bar is " + this.bar); // line (B)
}
is equivalent to
I feel that I understand the uses of *this* in Java programs, but for the life of me find it to be one of the hardest concepts to discuss with other people, that it is perhaps more abstract than...