package class5_3_HalfExam3_Practice_Extra_start;// Dr. Yoder. MSOE. 02 December 2016 /** * This class records information about a book that * for a home library collection. */ public class Book { private String title; private String author; /** * Create a new book * @param title the title (name) of the book * @param author the full name of the person who wrote the book */ public Book(String title, String author) { this.title = title; this.author = author; } /** * @return the title (name) of the book */ public String getTitle() { return title; } /* * @param title the new title of the book */ public void setTitle(String title) { this.title = title; } /** * @return the full name of the person who wrote the book */ public String getAuthor() { return author; } /** * @param author the new full name of the person who wrote the book */ public void setAuthor(String author) { this.author = author; } @Override public String toString() { return title + " by " + author; } }