实体类:
public class scorebean
{
private int score;
public int getScore(){
return score;
}
public void setScore(int score){
this.score=score;
}
}
类A:
scorebean sc =new scorebean();
int b =sc.getScore();
int a = b+20;
sc.setScore(a);
那类B
要怎么才能调用sc