/* * Mizuki Kagaya * CS 161 Program 2 * * * Class name: Book * Functionality: get and return the information about a book. */ public class Book { //instance variables private String title; private String publisher; private String author; private String isbn; // mutators public void setPublisher(String newpublisher) { // get the publisher name. publisher = newpublisher; } public void setTitle(String newtitle) { // get the title name. title = newtitle; } public void setAuthor(String newauthor) { // get the author name. author = newauthor; } public void setISBN(String newisbn) { // get the ISBN. isbn = newisbn; } // accessor methods public String getPublisher() { // return the publisher name. return publisher; } public String getTitle() { // return the title name. return title; } public String getAuthor() { // return the author name. return author; } public String getISBN() { // return the ISBN. return isbn; } } //end class Book