public class Test { public Test(int theX) { x = theX; } public int getX() { return x; } public void setX(int theX) { x = theX; } public void setXAndY(int theX, int theY) { int total = theX + theY; int diff = theX - theY; x = total; y = diff; } private int x; private int y = 10; }
(a) There are two formal parameters in total. (b) There are four formal parameters in total. (c) There are no local variables. (d) There are three instance variables. (e) There are four local variables.
Select all correct answers.