Package com.esprit.models.products
Class ShoppingCart
java.lang.Object
com.esprit.models.products.ShoppingCart
Is used to represent a shopping cart containing various products and users.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionShoppingCart
(int quantity, Product product, User user) Constructor without id for creating new shopping cart instances. -
Method Summary
-
Field Details
-
id
-
quantity
private int quantity -
product
-
user
-
-
Constructor Details
-
ShoppingCart
Constructor without id for creating new shopping cart instances.- Parameters:
quantity
- The quantity of the product in the cart.product
- The product associated with the cart.user
- The user associated with the cart.
-