TechStore code #1
@ -1,14 +1,12 @@
|
|||||||
package tech_store;
|
public class Receipt {
|
||||||
|
private Order receiptOrder;
|
||||||
public class Receipt {
|
private Client receiptClient;
|
||||||
private Order receiptOrder;
|
public Receipt(Order order, Client client) {
|
||||||
private Client receiptClient;
|
this.receiptOrder = order;
|
||||||
public Receipt(Order order, Client client) {
|
this.receiptClient = client;
|
||||||
this.receiptOrder = order;
|
}
|
||||||
this.receiptClient = client;
|
public void printReceipt() {
|
||||||
}
|
System.out.println("Client:\n" + this.receiptClient.toString());
|
||||||
public void printReceipt() {
|
System.out.println(this.receiptOrder.createReceipt());
|
||||||
System.out.println("Client:\n" + this.receiptClient.toString());
|
}
|
||||||
System.out.println(this.receiptOrder.createReceipt());
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user