21 lines
528 B
Java
21 lines
528 B
Java
abstract class Mitarbeiter{
|
|
int personalNummer;
|
|
String name;
|
|
String vorname;
|
|
|
|
public Mitarbeiter(int personalNummer, String name, String vorname) {
|
|
this.personalNummer = personalNummer;
|
|
this.name = name;
|
|
this.vorname = vorname;
|
|
}
|
|
|
|
abstract void print();
|
|
void setPersonalNummer(int i){personalNummer=i;}
|
|
void setName(String s){name=s;}
|
|
void setVorname(String s){vorname=s;}
|
|
|
|
int getPersonalNummer(){return personalNummer;}
|
|
String getName(){return name;}
|
|
String getVorname(){return vorname;}
|
|
}
|