class C { int a; //rename a --> b void F() { int b = 0; int c = a; }}
class C { int b; void F() { int b = 0; int c = b; //uh-oh, 'b' now refers to the local, not the field }}
class C { int b; void F() { int b = 0; int c = this.b; //Now everything is fine. }}
Q: What is Refactoring? A: Refactoring is a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior.
into Ack!