关于先get还是先set的问题?
public float getScreen() {
return screen;
}
public void setScreen(float newScreen) {
screen=newScreen;
}
感觉先get方法了,然后再set?为什么不是下面这样
public void setScreen(float newScreen) {
screen=newScreen;
}
public float getScreen() {
return screen;
}