2024-01-23 15:39:49 +00:00
|
|
|
abstract class Mitarbeiter{
|
2024-01-23 16:44:20 +00:00
|
|
|
int personalNummer;
|
|
|
|
String name;
|
|
|
|
String vorname;
|
2024-01-23 15:39:49 +00:00
|
|
|
|
2024-01-23 16:05:47 +00:00
|
|
|
public Mitarbeiter(int personalNummer, String name, String vorname) {
|
|
|
|
this.personalNummer = personalNummer;
|
|
|
|
this.name = name;
|
|
|
|
this.vorname = vorname;
|
|
|
|
}
|
|
|
|
|
2024-01-23 16:44:20 +00:00
|
|
|
abstract void print();
|
|
|
|
void setPersonalNummer(int i){personalNummer=i;}
|
|
|
|
void setName(String s){name=s;}
|
|
|
|
void setVorname(String s){vorname=s;}
|
2024-01-23 15:39:49 +00:00
|
|
|
|
2024-01-23 16:44:20 +00:00
|
|
|
int getPersonalNummer(){return personalNummer;}
|
|
|
|
String getName(){return name;}
|
|
|
|
String getVorname(){return vorname;}
|
2024-01-23 15:39:49 +00:00
|
|
|
}
|