2024-01-23 15:39:49 +00:00
|
|
|
class Angestellter extends Mitarbeiter {
|
|
|
|
|
|
|
|
double monatsGehalt;
|
|
|
|
|
2024-01-23 16:05:47 +00:00
|
|
|
public Angestellter(int personalNummer, String name, String vorname, double monatsGehalt) {
|
|
|
|
super(personalNummer, name, vorname);
|
|
|
|
this.monatsGehalt = monatsGehalt;
|
|
|
|
}
|
|
|
|
|
|
|
|
void print(){
|
2024-01-23 15:39:49 +00:00
|
|
|
System.out.println(getPersonalNummer());
|
|
|
|
System.out.println(getName());
|
|
|
|
System.out.println(getVorname());
|
|
|
|
System.out.println(monatsGehalt);
|
|
|
|
}
|
|
|
|
}
|