test
Форк от lirfrnk/test
1package com.bittercode.model;
2
3import java.io.Serializable;
4
5public class Cart implements Serializable {
6
7private Book book;
8private int quantity;
9
10public Cart(Book book, int quantity) {
11this.book = book;
12this.quantity = quantity;
13}
14
15public Book getBook() {
16return book;
17}
18
19public void setBook(Book book) {
20this.book = book;
21}
22
23public int getQuantity() {
24return quantity;
25}
26
27public void setQuantity(int quantity) {
28this.quantity = quantity;
29}
30
31}
32