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