JAVA CLASSES

profileBadshah
Publisher.java

package edu.cudenver.library; public class Publisher { //Todo: Publisher has a name and an address. /* Add Code Here */ public Publisher(String name){ //Todo: #1: initialize attributes. Address should be set to the string 'unknown' // reuse as much as possible. /* Add Code Here */ } public Publisher(String name, String address){ //Todo: #2: initialize attributes /* Add Code Here */ } public String getName() { //Todo: #3 /* Add Code Here */ } public void setName(String name) { //Todo: #4 /* Add Code Here */ } public String getAddress() { //Todo: #5 /* Add Code Here */ } public void setAddress(String address) { //Todo: #6 /* Add Code Here */ } /** * The toString method converts an object to a string. It is used to display the object in a println call. * @return the formating string. */ public String toString(){ //Todo: #7. Should show "Publisher '<name>' at '<address>'" /* Add Code Here */ } }