29 lines
524 B
Java
29 lines
524 B
Java
/*
|
|
* TASK 7
|
|
* archived at https://git.femboy.science/femsci/ppj/src/branch/task/7
|
|
* by femsci
|
|
*/
|
|
|
|
package dev.meowmeow;
|
|
|
|
public class Book {
|
|
public Book(String author, String title, String body) {
|
|
this.author = author;
|
|
this.title = title;
|
|
this.body = body;
|
|
}
|
|
|
|
private final String author, title, body;
|
|
|
|
public String getBody() {
|
|
return body;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public String getAuthor() {
|
|
return author;
|
|
}
|
|
}
|