#include <gstudent.h>
Inheritance diagram for GStudent:

Public Member Functions | |
| GStudent () | |
| GStudent (string name, string ssn, string major, double gpa, string degree) | |
| void | setDegree (string degree) |
| string | getDegree () |
| virtual void | read (ifstream &fin) |
| virtual void | print (ostream &out=cout) |
| virtual | ~GStudent () |
Protected Attributes | |
| string | degree |
|
|
Default class constructor. |
|
||||||||||||||||||||||||
|
Explicit class constructor initializing this graduate-student object using the arguments name, ssn (social security number), major, gpa (grade point average), and degree
|
|
|
Destructor. Does nothing but is recommended for classes with virtual methods. |
|
|
Returns this graduate student's degree
|
|
|
Prints this graduate student's name, ssn, major, gpa, and degree to the ostream out, which defaults to cout.
Reimplemented from UStudent. |
|
|
Read's this graduate student's name, ssn, major, gpa, and degree from the ifstream argument.
Reimplemented from UStudent. |
|
|
Sets this graduate student's degree
|
1.3