Skip to content

Instantly share code, notes, and snippets.

@lessandro
Created June 16, 2012 20:08
Show Gist options
  • Select an option

  • Save lessandro/2942402 to your computer and use it in GitHub Desktop.

Select an option

Save lessandro/2942402 to your computer and use it in GitHub Desktop.
class A
{
private int memberint;
public int someMethod(int memberint)
{
// memberint being shadowed by the parameter
this.memberint = memberint;
}
public int someothermetod(int bla)
{
// memberint not being shadowed
memberint = bla;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment