Main Page   Class Hierarchy   Compound List   File List   Compound Members  

ustudent.h

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

Generated on Fri Feb 6 16:29:56 2004 by doxygen1.3