Name resolution (programming languages): Difference between revisions

Content deleted Content added
mNo edit summary
Tags: Mobile edit Mobile app edit iOS app edit
Kavuldra (talk | contribs)
Alpha renaming to make name resolution trivial: said "class variables" while they are instance variables, since they're not static.
Line 77:
}
</syntaxhighlight>
within the {{mono|Point}} constructor, the [[classinstance variable]]s {{mono|x}} and {{mono|y}} are [[Variable shadowing|shadowed]] by local variables of the same name. This might be alpha-renamed to:
<syntaxhighlight lang="cpp">
class Point {