DEV TP01
This commit is contained in:
18
DEV/DEV3.1/TP01/Exercise1/Vote.java
Normal file
18
DEV/DEV3.1/TP01/Exercise1/Vote.java
Normal file
@@ -0,0 +1,18 @@
|
||||
public class Vote {
|
||||
|
||||
private String voter;
|
||||
private int points;
|
||||
|
||||
public Vote(String voter, int points) {
|
||||
this.voter = voter;
|
||||
this.points = points;
|
||||
}
|
||||
|
||||
public String getVoterName() {
|
||||
return this.voter;
|
||||
}
|
||||
|
||||
public int getPoints() {
|
||||
return this.points;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user