21 lines
528 B
Java
Raw Normal View History

2024-01-23 16:39:49 +01:00
abstract class Mitarbeiter{
2024-01-23 17:44:20 +01:00
int personalNummer;
String name;
String vorname;
2024-01-23 16:39:49 +01:00
2024-01-23 17:05:47 +01:00
public Mitarbeiter(int personalNummer, String name, String vorname) {
this.personalNummer = personalNummer;
this.name = name;
this.vorname = vorname;
}
2024-01-23 17:44:20 +01: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 16:39:49 +01:00
2024-01-23 17:44:20 +01:00
int getPersonalNummer(){return personalNummer;}
String getName(){return name;}
String getVorname(){return vorname;}
2024-01-23 16:39:49 +01:00
}