📜  public static void trong java là gì - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:46.931000             🧑  作者: Mango

代码示例1
public class Student {
    float score;

    // Getter and Setter
    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }
}