-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBookClass
More file actions
91 lines (85 loc) · 2.17 KB
/
Copy pathBookClass
File metadata and controls
91 lines (85 loc) · 2.17 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package BookApp.Book;
public class BookClass {
// variables for the book class
private String title;
private String author;
private int yearOfPublication;
private String publisher;
private int numberOfPages;
private String genre;
private String plotDescription;
private String bookCoverImageLink;
/**
* constructor for the book class
* @param title
* @param author
* @param yearOfPublication
* @param publisher
* @param numberOfPages
* @param genre
* @param plotDescription
* @param bookCoverImageLink
*/
public BookClass(String title,String author,int yearOfPublication,String publisher,int numberOfPages,String genre,String plotDescription,String bookCoverImageLink) {
this.title = title;
this.author = author;
this.yearOfPublication = yearOfPublication;
this.publisher = publisher;
this.numberOfPages = numberOfPages;
this.genre = genre;
this.plotDescription = plotDescription;
this.bookCoverImageLink = bookCoverImageLink;
}
/**
* getters and setters for the Book class variables
* @return
*/
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public int getYearOfPublication() {
return yearOfPublication;
}
public void setYearOfPublication(int yearOfPublication) {
this.yearOfPublication = yearOfPublication;
}
public String getPublisher() {
return publisher;
}
public void setPublisher(String publisher) {
this.publisher = publisher;
}
public int getNumberOfPages() {
return numberOfPages;
}
public void setNumberOfPages(int numberOfPages) {
this.numberOfPages = numberOfPages;
}
public String getGenre() {
return genre;
}
public void setGenre(String genre) {
this.genre = genre;
}
public String getPlotDescription() {
return plotDescription;
}
public void setPlotDescription(String plotDescription) {
this.plotDescription = plotDescription;
}
public String getBookCoverImageLink() {
return bookCoverImageLink;
}
public void setBookCoverImageLink(String bookCoverImageLink) {
this.bookCoverImageLink = bookCoverImageLink;
}
}