-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBook.java
More file actions
25 lines (20 loc) · 733 Bytes
/
Copy pathBook.java
File metadata and controls
25 lines (20 loc) · 733 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
package Entity;
public class Book{
private String id;
private String name;
private String description;
public Book(String id, String name, String description){
this.id = id;
this.name = name;
this.description = description;
}
public String getId(){ return id; }
public String getName(){ return name; }
public String getDescription(){ return description;}
public void setId(String id){ this.id = id; }
public void setName(String name){ this.name = name; }
public void setDescription(String description){ this.description = description; }
public String getInfo(){
return "Book ID: " + id + ", Name: " + name + ", Description: " + description;
}
}