#ifndef STUDENT_H #define STUDENT_H #include using namespace std; /** A class that represents the name and identification number of a student. */ class Student { private: //private variable holding a pointer //to the name of the student string *name; //private variable holding the //id number of the student int id; public: /** Student constructor. Takes as input the initial name and id number of the student. */ Student(string init_name, int init_id); /** Student destructor. Deletes dynamically allocated name. */ ~Student(); /** Student copy constructor. Takes as input a constant reference to the Student object which should be copied. */ Student(const Student & rhs); /** Copy assignment operator for Student. Takes as input a constant reference to the Student object which should be copied. Returns a constant reference to this Student object. */ const Student & operator=(const Student & rhs); /** Returns the name of the Student. */ string getName() const; /** Changes the name of the student to newname. */ void setName(string newname); /** Returns the id of the Student. */ int getID() const; /** Changes the id of the Student to newid. */ void setID(int newid); /** Prints the name and id of this Student to standard output. */ void print(); }; #endif