test

Форк
1
65 строк · 1.2 Кб
1
package com.bittercode.model;
2

3
import java.io.Serializable;
4

5
public class Book implements Serializable {
6

7
    private String barcode;
8
    private String name;
9
    private String author;
10
    private double price;
11
    private int quantity;
12

13
    public Book(String barcode, String name, String author, double price, int quantity) {
14
        this.barcode = barcode;
15
        this.name = name;
16
        this.author = author;
17
        this.setPrice(price);
18
        this.quantity = quantity;
19
    }
20

21
    public Book() {
22
        super();
23
    }
24

25
    public String getBarcode() {
26
        return barcode;
27
    }
28

29
    public void setBarcode(String barcode) {
30
        this.barcode = barcode;
31
    }
32

33
    public String getName() {
34
        return name;
35
    }
36

37
    public void setName(String name) {
38
        this.name = name;
39
    }
40

41
    public String getAuthor() {
42
        return author;
43
    }
44

45
    public void setAuthor(String author) {
46
        this.author = author;
47
    }
48

49
    public int getQuantity() {
50
        return quantity;
51
    }
52

53
    public void setQuantity(int quantity) {
54
        this.quantity = quantity;
55
    }
56

57
    public double getPrice() {
58
        return price;
59
    }
60

61
    public void setPrice(double price) {
62
        this.price = price;
63
    }
64

65
}
66

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.