JAVA CLASSES

profileBadshah
Author.java

package edu.cudenver.library; /** * This is the class Author. It models Book Author. */ public class Author { /* Add Code Here */ /** * Author Constructor. * @param name Name of the author. */ public Author(String name){ //Todo: #1: initialize author attributes /* Add Code Here */ } /** * * @return author's name */ public String getName(){ //Todo: #2 /* Add Code Here */ } /** * Sets the author's name * @param name */ public void setName (String name){ //Todo: #3 /* Add Code Here */ } /** * The toString method converts an object to a string. It is used to display the object in a println call. * @return */ public String toString(){ //Todo: #4 Should show: "<name> is an Author" /* Add Code Here */ } }