added Date of Birth to Player.java
This commit is contained in:
parent
380250f60e
commit
48fba22853
|
@ -1,10 +1,21 @@
|
||||||
package ch.zhaw.projekt2.turnierverwaltung;
|
package ch.zhaw.projekt2.turnierverwaltung;
|
||||||
|
|
||||||
public class Player extends Person{
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class Player extends Person implements Participant{
|
||||||
|
|
||||||
public Player(String firstName, String name, String phoneNumber){
|
private Date dateOfBirth;
|
||||||
|
|
||||||
|
public Player(String firstName, String name, String phoneNumber, Date dateOfBirth){
|
||||||
super(firstName, name, phoneNumber);
|
super(firstName, name, phoneNumber);
|
||||||
|
setDateOfBirth(dateOfBirth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Date getDateOfBirth() {
|
||||||
|
return dateOfBirth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDateOfBirth(Date dateOfBirth) {
|
||||||
|
this.dateOfBirth = dateOfBirth;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue