Compare commits
2 Commits
f907d3be3c
...
c84192de04
Author | SHA1 | Date | |
---|---|---|---|
|
c84192de04 | ||
|
5f03c2d603 |
BIN
Medien/Bilder & Co/Angestellten_UML.png
Normal file
BIN
Medien/Bilder & Co/Angestellten_UML.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 81 KiB |
@ -15,4 +15,7 @@ Dateien wie Bilder die zur Lösung einer Aufgabe gehören sind in <br><ins>Medie
|
|||||||
<br>Nicht die gewünschte rekursive Backtracking-Implementierung
|
<br>Nicht die gewünschte rekursive Backtracking-Implementierung
|
||||||
|
|
||||||
|
|
||||||
|
- VL 6 Aufg 1 aktuell nur a) - d)
|
||||||
|
|
||||||
|
|
||||||
- Keine
|
- Keine
|
||||||
|
@ -4,6 +4,13 @@ class Angestellter extends Mitarbeiter{
|
|||||||
|
|
||||||
double monatsGehalt;
|
double monatsGehalt;
|
||||||
|
|
||||||
|
void Angestellter(int persoNR, String name, String vorname, double monatsGehalt){
|
||||||
|
this.personalNummer = persoNR;
|
||||||
|
this.name = name;
|
||||||
|
this.vorname = vorname;
|
||||||
|
this.monatsGehalt = monatsGehalt;
|
||||||
|
}
|
||||||
|
|
||||||
void print(){
|
void print(){
|
||||||
System.out.println(getPersonalNummer());
|
System.out.println(getPersonalNummer());
|
||||||
System.out.println(getName());
|
System.out.println(getName());
|
||||||
|
@ -4,6 +4,12 @@ class Arbeiter extends Mitarbeiter{
|
|||||||
|
|
||||||
double stundenSatz;
|
double stundenSatz;
|
||||||
|
|
||||||
|
Arbeiter(int persoNR, String name, String vorname){
|
||||||
|
this.personalNummer = persoNR;
|
||||||
|
this.name = name;
|
||||||
|
this.vorname = vorname;
|
||||||
|
}
|
||||||
|
|
||||||
void print(){
|
void print(){
|
||||||
System.out.println(getPersonalNummer());
|
System.out.println(getPersonalNummer());
|
||||||
System.out.println(getName());
|
System.out.println(getName());
|
||||||
|
@ -4,6 +4,13 @@ final class Facharbeiter extends Arbeiter{
|
|||||||
|
|
||||||
String fachRichtung;
|
String fachRichtung;
|
||||||
|
|
||||||
|
Facharbeiter(int persoNR, String name, String vorname, String fachRichtung){
|
||||||
|
this.personalNummer = persoNR;
|
||||||
|
this.name = name;
|
||||||
|
this.vorname = vorname;
|
||||||
|
this.fachRichtung = fachRichtung;
|
||||||
|
}
|
||||||
|
|
||||||
void print(){
|
void print(){
|
||||||
System.out.println(getPersonalNummer());
|
System.out.println(getPersonalNummer());
|
||||||
System.out.println(getName());
|
System.out.println(getName());
|
||||||
|
20
src/part6/Leitender_Angestellter.java
Normal file
20
src/part6/Leitender_Angestellter.java
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package part6;
|
||||||
|
|
||||||
|
public class Leitender_Angestellter extends Angestellter{
|
||||||
|
int bonus;
|
||||||
|
|
||||||
|
Leitender_Angestellter(int persoNR, String name, String vorname, double monatsgehalt, int bonus){
|
||||||
|
this.personalNummer = persoNR;
|
||||||
|
this.name = name;
|
||||||
|
this.vorname = vorname;
|
||||||
|
this.monatsGehalt = monatsgehalt;
|
||||||
|
this.bonus = bonus;
|
||||||
|
}
|
||||||
|
void print(){
|
||||||
|
System.out.println(getPersonalNummer());
|
||||||
|
System.out.println(getName());
|
||||||
|
System.out.println(getVorname());
|
||||||
|
System.out.println(monatsGehalt);
|
||||||
|
System.out.println(bonus);
|
||||||
|
}
|
||||||
|
}
|
33
src/part6/Manager.java
Normal file
33
src/part6/Manager.java
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
package part6;
|
||||||
|
|
||||||
|
public class Manager extends Leitender_Angestellter{
|
||||||
|
|
||||||
|
String wagentyp;
|
||||||
|
String kennzeichen;
|
||||||
|
|
||||||
|
Manager(int persoNR, String name, String vorname, double monatsgehalt, int bonus, String wagentyp, String kennzeichen){
|
||||||
|
this.personalNummer = persoNR;
|
||||||
|
this.name = name;
|
||||||
|
this.vorname = vorname;
|
||||||
|
this.monatsGehalt = monatsgehalt;
|
||||||
|
this.bonus = bonus;
|
||||||
|
this.wagentyp = wagentyp;
|
||||||
|
this.kennzeichen = kennzeichen;
|
||||||
|
}
|
||||||
|
|
||||||
|
void print(){
|
||||||
|
System.out.println(getPersonalNummer());
|
||||||
|
System.out.println(getName());
|
||||||
|
System.out.println(getVorname());
|
||||||
|
System.out.println(monatsGehalt);
|
||||||
|
System.out.println(bonus);
|
||||||
|
System.out.println(wagentyp);
|
||||||
|
System.out.println(kennzeichen);
|
||||||
|
}
|
||||||
|
|
||||||
|
void setWagentyp(String s){wagentyp = s;}
|
||||||
|
void setKennzeichen(String s){kennzeichen = s;}
|
||||||
|
|
||||||
|
String getWagentyp(){return wagentyp;}
|
||||||
|
String getKennzeichen(){return kennzeichen;}
|
||||||
|
}
|
9
src/part6/aufg1.java
Normal file
9
src/part6/aufg1.java
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
package part6;
|
||||||
|
|
||||||
|
public class aufg1 {
|
||||||
|
|
||||||
|
// a) & b) siehe "Angestellten_UML.png" in "/Medien/Bilder & Co/"
|
||||||
|
|
||||||
|
// c)
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user