-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBook.java
More file actions
46 lines (37 loc) · 803 Bytes
/
Copy pathBook.java
File metadata and controls
46 lines (37 loc) · 803 Bytes
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
package java0912_collection.answ;
class Book{
private String title;
private String publisher;
private String writer;
private String price;
public Book(String title, String publisher, String writer, String price) {
this.title = title;
this.publisher = publisher;
this.writer = writer;
this.price = price;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getPublisher() {
return publisher;
}
public void setPublisher(String publisher) {
this.publisher = publisher;
}
public String getWriter() {
return writer;
}
public void setWriter(String writer) {
this.writer = writer;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
}