Aktienhandel #4

Merged
Denys Konovalov merged 22 commits from ibartkowski/info-java:main into main 2024-10-18 18:21:55 +02:00
Showing only changes of commit bb83044c78 - Show all commits

@ -1,14 +1,12 @@
package tech_store;
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());
}
}
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());
}
}