/** * Interface is a list of method prototypes * that other classes must implement (like a contract) * * @author William McDaniel Albritton */ public interface NameInterface{ /** * Displays the data fields * * @return a String in "Last, First" format */ public String toString(); /** * Accessor method for first name * * @return a first name */ public String getFirstName(); /** * Accessor method for last name * * @return a last name */ public String getLastName(); /** * Mutator method for first name * * @param theFirst is the first name */ public void setFirstName(String theFirst); /** * Mutator method for last name * * @param theLast is the last name */ public void setLastName(String theLast); /** * Makes All The Data Fields UpperCase. * * @return a Name with first and last names in lowercase */ public Name4 toUpperCase(); /** * Makes All The Data Fields LowerCase. * * @return a Name with first and last names in lowercase */ public Name4 toLowerCase(); /** * Calculates the iniials. * * @return the initials of a Name */ public String initials(); }//end of interface