/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package programming2.ch6.book;

/**
 *
 * @author yus
 */
public class Book {
    private String title;
    private String author;
    private String publisher;
    private int copiesSold;

    public Book(String title, String author, String publisher, int copiesSold) {
        this.title = title;
        this.author = author;
        this.publisher = publisher;
        this.copiesSold = copiesSold;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public int getCopiesSold() {
        return copiesSold;
    }

    public void setCopiesSold(int copiesSold) {
        this.copiesSold = copiesSold;
    }
    
}

@@ -377,501 +377,1160 @@
     
-public Book(String title, String author, String publisher, int copiesSold) %7B%0A        this.title = title;%0A        this.author = author;%0A        this.publisher = publisher;%0A        this.copiesSold = copiesSold;%0A    %7D%0A%0A    public String getTitle() %7B%0A        return title;%0A    %7D%0A%0A    public void setTitle(String title) %7B%0A        this.title = title;%0A    %7D%0A%0A    public String getAuthor() %7B%0A        return author;%0A    %7D%0A%0A    public void setAuthor(String author) %7B%0A        this.author = author;%0A    %7D%0A
+/**%0A     * Constructor for Book class%0A     * @param title title of the book%0A     * @param author author of the book%0A     * @param publisher publisher of the book%0A     * @param copiesSold number of copies this this title has sold%0A     */%0A    public Book(String title, String author, String publisher, int copiesSold) %7B%0A        this.title = title;%0A        this.author = author;%0A        this.publisher = publisher;%0A        this.copiesSold = copiesSold;%0A    %7D%0A%0A    /**%0A     * Get the title of the book%0A     * @return title of the book%0A     */%0A    public String getTitle() %7B%0A        return title;%0A    %7D%0A    %0A    /**%0A     * Set the title of the book%0A     * @param title title of the book%0A     */%0A    public void setTitle(String title) %7B%0A        this.title = title;%0A    %7D%0A%0A    /**%0A     * Get the author of the book%0A     * @return author of the book%0A     */%0A    public String getAuthor() %7B%0A        return author;%0A    %7D%0A%0A    /**%0A     * Set the author of the book%0A     * @param author%0A     */%0A    public void setAuthor(String author) %7B%0A        this.author = author;%0A    %7D%0A%0A    /**%0A     * Get the publisher of the book%0A     * @return publisher of the book%0A     */
 %0A   

Update Book.java