Fxml #8

Merged
fassband merged 31 commits from fxml into main 2022-04-30 18:09:54 +02:00
1 changed files with 13 additions and 2 deletions
Showing only changes of commit 48fba22853 - Show all commits

View File

@ -1,10 +1,21 @@
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);
setDateOfBirth(dateOfBirth);
}
public Date getDateOfBirth() {
return dateOfBirth;
}
public void setDateOfBirth(Date dateOfBirth) {
this.dateOfBirth = dateOfBirth;
}
}