Cart Position bearbeitet. Referenz zu Product hinzugefügt. quantity hinzugefügt
parent
75b54e74f5
commit
8ff5b89ffc
|
|
@ -6,4 +6,13 @@ Cart Pos speichert die Menge der Products ---> bekommt product und menge (quanti
|
|||
*/
|
||||
|
||||
public class CartPosition {
|
||||
//Produkt ist eine referenz auf Product
|
||||
private Product product;
|
||||
//Die menge der produkte die gekauft werden sollen
|
||||
private int quantity;
|
||||
|
||||
public CartPosition(Product product, int quantity){
|
||||
this.product = product;
|
||||
this.quantity = quantity;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue