/**
 * Stores a name and favorite color
 * @author Hyrum D. Carroll
 * @version 0.2 (August 27, 2019)
 */
public class SimplePerson{

    private String name;  // first name
    private String color; // favorite color

    /**
     * Basic constructor to set only the first name
     * @param nameIn first name
     */
    public SimplePerson( String nameIn ){
	name = nameIn;
        color = "";
    }

    /**
     * Accessor method for name
     * @return first name
     */
    public String getName( ){
	return name;
    }

    /**
     * Accessor method for color
     * @return favorite color
     */
    public String getColor( ){
	return color;
    }


    /**
     * Mutator method to set name
     * @param nameIn first name
     */
    public void setName( String nameIn ){
	name = nameIn;
    }

    /**
     * Mutator method to set the favorite color
     * @param color favorite color
     */
    public void setColor( String colorIn ){
	color = colorIn;
    }

    /**
     * Formats the stored information into a String
     * @return a String with the first name and favorite color
     */
    public String toString(){
	return name + "'s favorite color is " + color;
    }
}