单项选择题

现有:  
class TestFoo {  
int x;  
String y;  
int getX() { return x; }  
String getY() { return y; }  
void setX(int x) {  
int z = 7;  
this.x = x;  
}   
}   
可以添加多少个修饰符来封装此类?() 

A. 2
B. 3
C. 4
D. 5