public class Player { private String name; private int score; public Player(String name) { this.name = name; this.score = 0; } public void increaseScore() { this.score++; } public void resetScore() { this.score = 0; } public int getScore() { return score; } }