/* Directory Entry for Student Implementation Code */ #include "Student.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 */ Student::Student () : year (0), POBox ("") { firstName = ""; lastName = ""; email = ""; } Student::Student (const string & first,const string & last, const string & eAddress, const int& yr, const string & POBox) : year (yr), POBox (POBox) { firstName = first; lastName = last; email = eAddress; } /* method override to allow full viewing of a Student object */ string Student::toString () const { return Entry::toString() + " Class Year: " + to_string(year) + "\n Campus P. O. Box: " + POBox + "\n"; }