import java.io.Serializable; /** Represents a Human * @author Joseph Mendelsohn */ public class Human implements Serializable { /** Represents the Human's name */ private String name; /** Creates a Human and sets name to '--' */ public Human() { name = "--"; } /** Creates a Human with the specified name * @param n The Human's name */ public Human(String n) { name = n; } /** Sets the Human's name * @param n A String to set the Human's name */ public void setName(String n) { name = n; } /** Gets the Human's name * @return A string representing the name of the Human */ public String getName() { return name; } /** Gets a string representation of the information for a Human * @return A string with the value of the name */ public String toString() { return "Name: " + name + "\n"; } } //end class Human