Semester_1_i23010/Objektorientierung I, afg1/Mitarbeiter.java

15 lines
372 B
Java
Raw Normal View History

2024-04-10 08:16:18 +00:00
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;}
}