class Scope { static int first, second; static void pair (int second, int third) { Scope.first = second; Scope.second = third; /* local variable can shadow class variables */ int first = second; // LEGAL /* local variables can't shadow formal parameters int second = second; // ILLEGAL */ int fourth = second; /* local variables can't shadow other local variables int fourth = second; // a second decl of "fourth" is ILLEGAL */ } }