Cart Position bearbeitet. Referenz zu Product hinzugefügt. quantity hinzugefügt

main
Daniel Zikol 2025-12-11 01:52:40 +01:00
parent 75b54e74f5
commit 8ff5b89ffc
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}
}