forked from denyskon/info-java
Igor Bartkowski
89bb3a674e
Technikladen-Aufgaben-Lösung hinzugefügt, weitere kleinere Änderungen werden noch folgen, aber funktional hiermit vollständig Reviewed-on: denyskon/info-java#1 Reviewed-by: Denys Konovalov <kontakt@denyskon.de> Co-authored-by: ibartkowski <ibartkowski@git.cantorgymnasium.de> Co-committed-by: ibartkowski <ibartkowski@git.cantorgymnasium.de>
13 lines
351 B
Java
Executable File
13 lines
351 B
Java
Executable File
public class Receipt {
|
|
private Order receiptOrder;
|
|
private Client receiptClient;
|
|
public Receipt(Order order, Client client) {
|
|
this.receiptOrder = order;
|
|
this.receiptClient = client;
|
|
}
|
|
public void printReceipt() {
|
|
System.out.println("Client:\n" + this.receiptClient.toString());
|
|
System.out.println(this.receiptOrder.createReceipt());
|
|
}
|
|
}
|