Skip to content

Instantly share code, notes, and snippets.

@BalicantaYao
Created February 25, 2018 08:26
Show Gist options
  • Save BalicantaYao/654149d417be87d953589d416518d086 to your computer and use it in GitHub Desktop.
Save BalicantaYao/654149d417be87d953589d416518d086 to your computer and use it in GitHub Desktop.
Student
public class Student{
// 靜態 -
int score = 0;
// 動態 -
public void play(int hours){
score = score - hours;
}
public void study(int hours){
score = score + hours;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment