15 lines
393 B
Java
15 lines
393 B
Java
public class Bestellung {
|
|
private Warenkorb warenkorb;
|
|
private float versandkosten;
|
|
|
|
public Bestellung(Warenkorb warenkorb, float versandkosten) {
|
|
this.warenkorb = warenkorb;
|
|
this.versandkosten = versandkosten;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Bestellung:\n" + warenkorb + "\nVersandkosten: " + versandkosten + " Euro\n";
|
|
}
|
|
}
|