Scope of parameters
The scope of a parameter of a method is the method body. A parameter may not be redeclared within the body.
// ...
public test(int p)
{if (y= p);
{int x;
x= p;
if (p > -p)
x= -p;
}
y= p; }
Previous slide
Next slide
Back to first slide
View graphic version