2024-01-23 16:39:49 +01:00
|
|
|
class Arbeiter extends Mitarbeiter{
|
|
|
|
|
2024-01-23 17:44:20 +01:00
|
|
|
double stundenSatz;
|
2024-01-23 16:39:49 +01:00
|
|
|
|
2024-01-23 17:44:20 +01:00
|
|
|
Arbeiter(int personalNummer, String name, String vorname, double stundenSatz) {
|
|
|
|
super(personalNummer, name, vorname);
|
|
|
|
this.stundenSatz = stundenSatz;
|
2024-01-23 16:39:49 +01:00
|
|
|
}
|
2024-01-23 17:44:20 +01:00
|
|
|
|
|
|
|
void print(){
|
|
|
|
System.out.println(getPersonalNummer());
|
|
|
|
System.out.println(getName());
|
|
|
|
System.out.println(getVorname());
|
|
|
|
System.out.println(stundenSatz);
|
|
|
|
}
|
2024-01-23 16:39:49 +01:00
|
|
|
}
|