OOP2

Book.java

1
public class Book {
2
3
	private Enum<BookType> bookType;
4
	private int price;
5
	private int inStock;
6
7
	public Book(Enum<BookType> bookType, int price, int inStock) { 
8
		this.bookType = bookType;
9
		this.price = price;
10
		this.inStock = inStock;
11
	}
12
13
	public void setBookType(Enum<BookType> bookType) {
14
		this.bookType = bookType;
15
	}
16
17
	public Enum<BookType> getBookType() {	
18
		return bookType;
19
	}
20
21
	public void setPrice(int price) {
22
		this.price = price;
23
	}
24
25
	public int getPrice() {	
26
		return price;
27
	}
28
29
	public void setInStock(int inStock) {
30
		this.inStock = inStock;
31
	}
32
33
	public int getInStock() {	
34
		return inStock;
35
	}
36
37
}
38