-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBook.java
More file actions
32 lines (30 loc) · 1.1 KB
/
Book.java
File metadata and controls
32 lines (30 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
public class Book {
private int id;
private String isbn;
private String title;
private String author;
private String publisher;
private int publicationYear;
private int quantity;
private int availableQuantity;
private boolean isActive;
public Book(int id, String isbn, String title, String author, String publisher,
int publicationYear, int quantity, int availableQuantity, boolean isActive) {
this.id = id;
this.isbn = isbn;
this.title = title;
this.author = author;
this.publisher = publisher;
this.publicationYear = publicationYear;
this.quantity = quantity;
this.availableQuantity = availableQuantity;
this.isActive = isActive;
}
// Getters and Setters
public int getId() { return id; }
public String getIsbn() { return isbn; }
public String getTitle() { return title; }
public String getAuthor() { return author; }
public int getAvailableQuantity() { return availableQuantity; }
public boolean isActive() { return isActive; }
}