15 lines
372 B
Java
15 lines
372 B
Java
|
abstract class Mitarbeiter{
|
||
|
int personalNummer;
|
||
|
String name;
|
||
|
String 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;}
|
||
|
}
|