Local Variables and Passed Parameters
class MyClass {
public int x; // These are local variables
private int y; // -- local to MyClass
public int method1(int xx, int yy) { // These are parameters passed to method1
x = xx;
y = yy;
return (method2(x,y));
}
private int method2(int xx,yy) {
int z; // z is local to method2
z = xx+yy ;
return z;
}
}