import Name; /** * A faculty member. Written as a stub class to support a StudentInfo * class. * * @author Samuel A. Rebelsky * @version 1.0 of February 2000 */ public class FacultyInfo { // +--------+--------------------------------------------------- // | Fields | // +--------+ /** * The faculty member's name. */ protected Name name; // +--------------+--------------------------------------------- // | Constructors | // +--------------+ /** * Create a new faculty member with a specified name. */ public FacultyInfo(Name initialName) { this.name = initialName; } // FacultyInfo(Name) // +-----------+------------------------------------------------ // | Accessors | // +-----------+ /** * Get the faculty member's name. */ public Name getName() { return this.name; } // getName() /** * Convert to a string (typically in preparation for printing). */ public String toString() { return this.name.toString(); } // toString() } // class FacultyInfo