Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Book {
- String title;
- String author;
- String category;
- public Book(String title, String author, String category) {
- }
- public String getCategory() {
- return category;
- }
- public String toString() {
- return title + " by " + author +", " + "category:" + category;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement