為什么我會顯示setScreen和getScreen有錯
求解:
13行顯示The method setScreen(float) is undefined for the type Shouji錯。
14行顯示The method getScreen() is undefined for the type Shouji錯
求解:
13行顯示The method setScreen(float) is undefined for the type Shouji錯。
14行顯示The method getScreen() is undefined for the type Shouji錯
2018-07-25
舉報
2018-07-25
你的setScreen方法里面要給當前對象賦值? 所以setScreen方法里面應該是this.screen=newScreen;才對