/* Directory Entry for Faculty Implementation Code */ #include "Faculty.h" using namespace std; /* Public methods for a typical Entry within a directory data will inlude a person's first name, last name and email address */ /* constructors */ Faculty::Faculty () : office (""), extension (0), dept (""), firstYear (0) { firstName = ""; lastName = ""; email = ""; } Faculty::Faculty (const string & first, const string & last, const string & addr, const string & room, const int & ext, const string & department, const int & yr) : office (room), extension (ext), dept (department), firstYear (yr) { firstName = first; lastName = last; email = addr; } /* method override to allow full viewing of a Faculty object */ string Faculty::toString () const { return Entry::toString() + " Office: " + office + "\tOffice Extenstion: " + to_string (extension) + "\n Department: " + dept + "\n First Year at SSU: " + to_string(firstYear) + "\n"; }