forked from denyskon/info-java
13 lines
351 B
Java
13 lines
351 B
Java
|
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());
|
||
|
}
|
||
|
}
|