anonymous No title
No License Java
2020年09月30日
Copy
public class Score{
    private int score = 0;

    Score(int score){
        this.score = score;
    }

    Score(){
    }

    public void setScore(int score) {
        if (score >= 0 && score <= 100){
            this.score = score;
        }
    }
    public int getScore(){
        return score;
    }
    public void showResult(String person){
        System.out.println(person+"さんの点数:"+score);
    }

}
public class Score{
    private int score = 0;

    Score(int score){
        this.score = score;
    }

    Score(){
    }

    public void setScore(int score) {
        if (score >= 0 && score <= 100){
            this.score = score;
        }
    }
    public int getScore(){
        return score;
    }
    public void showResult(String person){
        System.out.println(person+"さんの点数:"+score);
    }

}

No one still commented. Please first comment.