-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNFLPlayer.java
57 lines (46 loc) · 1.1 KB
/
NFLPlayer.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/** Program: NFL PLayer Class
* File: NFLPlayer.java
* Summary: Class to create players and their stats
* Author: Ronald Pearl
* Date: July 1, 2016
**/
public abstract class NFLPlayer implements Celebrator {
// Player Common Stats
protected String playerName = "";
protected String playerPosition = "";
protected int playerNum;
protected String playerTeam = "";
NFLPlayer(String playerPosition, String playerTeam) {
this.playerPosition = playerPosition;
this.playerTeam = playerTeam;
}
public String celebrate() {
return "";
}
// Getters
public String getPlayerName() {
return playerName;
}
public String getPlayerPosition() {
return playerPosition;
}
public int getPlayerNum() {
return playerNum;
}
public String getPlayerTeam() {
return playerTeam;
}
// Setters
public void setPlayerName(String plyrName) {
playerName = plyrName;
}
public void setPlayerPosition(String plyrPosition) {
playerPosition = plyrPosition;
}
public void setPlayerNum(int plyrNum) {
playerNum = plyrNum;
}
public void setPlayerTeam(String plyrTeam) {
playerTeam = plyrTeam;
}
}