Update Technikladen/OrderEntry.java
Removed package line
This commit is contained in:
parent
192ae021dc
commit
ddc485ddeb
@ -1,16 +1,14 @@
|
|||||||
package tech_store;
|
public class OrderEntry {
|
||||||
|
private Product orderProduct;
|
||||||
public class OrderEntry {
|
private int entryAmount;
|
||||||
private Product orderProduct;
|
public OrderEntry(Product product, int amt) {
|
||||||
private int entryAmount;
|
this.orderProduct = product;
|
||||||
public OrderEntry(Product product, int amt) {
|
this.entryAmount = amt;
|
||||||
this.orderProduct = product;
|
}
|
||||||
this.entryAmount = amt;
|
public int calcPrice() {
|
||||||
}
|
return this.entryAmount * this.orderProduct.getPrice();
|
||||||
public int calcPrice() {
|
}
|
||||||
return this.entryAmount * this.orderProduct.getPrice();
|
public String toString() {
|
||||||
}
|
return ("Product: " + this.orderProduct.getName() + ", Amount: " + this.entryAmount);
|
||||||
public String toString() {
|
}
|
||||||
return ("Product: " + this.orderProduct.getName() + ", Amount: " + this.entryAmount);
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user