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