/** * General Person class * @author Brad Rippe */ public class Person { /** * Default constructor * If you don't specify a constructor one will be provided * for you by the compiler */ public Person() { this.fullName = "No name has been specified"; } public Person(String fullName) { this.fullName = fullName; } /** * Sets the person's full name. * @param fName new full name */ public void setFullName(String fName) { this.fullName = fName; } /** * Retrieves the person's full name * @return full name */ public String getFullName() { return this.fullName; } /** * Outputs string representation of the class * Method will be over-ridden in Employee and Student */ public void overridingTest( int i, Person p ) { System.out.println( "Person Class overridingTest" ); } protected String fullName; }