Name resolution (programming languages): Difference between revisions

Content deleted Content added
Static versus dynamic: Greatly clarified and simplified the Python example, updated the source for accuracy and timelieness.
Name masking: Minor clarification.
Line 43:
private int foo; // Name "foo" is declared in the outer scope
 
public void setFoo(int foo) { // Name "foo" is declared in the inner scope as well
this.foo = foo;
}