-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbook.java
More file actions
37 lines (30 loc) · 714 Bytes
/
book.java
File metadata and controls
37 lines (30 loc) · 714 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
package library;
public class book {
private String title;
private int ID;
private String author;
public book(String title, int ID, String author){ //constructor
this.title = title;
this.ID = ID;
this.author = author;
}
//getters and setters
public String getTitle() {
return title;
}
public int getID(){
return ID;
}
public String getAuthor(){
return author;
}
public void setTitle(String title){
this.title = title;
}
public void setID(int ID){
this.ID=ID;
}
public void setAuthor(String author){
this.author = author;
}
}