/Users/johnr/Desktop/IA_14_-_Stage_P_Upload_all_2021-04-08/RugbyIA Pune April 7th/src/Player.java |
1
2
3
4
5
6
7
8
9 @author
10
11 public class Player {
12 private String playerPosition = "not yet set";
13 private String playerName = "not yet set";
14 private String playerScore = "not yet set";
15
16
17 public Player(){
18
19 }
20
21 public Player(String playerPosition, String playerName, String playerScore){
22 this.playerPosition = playerPosition;
23 this.playerName = playerName;
24 this.playerScore = playerScore;
25 }
26
27 public String getPlayerPosition(){
28 return playerPosition;
29 }
30
31 public String getPlayerName(){
32 return playerName;
33 }
34
35 public String getPlayerScore(){
36 return playerScore;
37 }
38
39
40 public void setPlayerPosition(String playerPosition){
41 this.playerPosition = playerPosition;
42 }
43
44 public void setPlayerName(String playerName){
45 this.playerName = playerName;
46 }
47
48 public void setPlayerScore(String playerScore){
49 this.playerScore = playerScore;
50 }
51 }
52