minha resposta é 3
Given:
1. class TestFoo {
2. int x;
3. String y;
4. int getX() { return x; }
5. String getY() { return y; }
6. void setX(int x) {
7. int z = 7;
8. this.x = x;
9. }
10. }
How many modifiers must you add to encapsulate this class?
A 2
B 3
C 4
D 5