00001
00002 #ifndef GSTUDENT_H
00003 #define GSTUDENT_H
00004
00005 #include <iostream>
00006 #include <fstream>
00007 #include <string>
00008 #include "ustudent.h"
00009
00010 using namespace std;
00011
00023 class GStudent : public UStudent
00024 {
00025 public:
00026 GStudent();
00027 GStudent(string name, string ssn, string major, double gpa, string degree);
00028
00029 void setDegree(string degree);
00030 string getDegree();
00031
00032 virtual void read(ifstream &fin);
00033 virtual void print(ostream &out = cout);
00034 virtual ~GStudent();
00035
00036 protected:
00037 string degree;
00038
00039 };
00040
00041 #endif // GSTUDENT_H
00042