5752758 [rkeene@sledge /home/rkeene/personal/school/comp-sci-ii/lab2]$ cat -n student.h
 1 
 2 /* Roy Keene
 3    CS 2314
 4    Section 04
 5    Lab 02
 6    27 Aug 02
 7    student.h
 8 */
 9 
10 #include <string>
11 
12 class Student {
13     public:
14         Student(string name, string country);
15         Student(string name);
16         Student();
17         string getName(void);
18         string getCountry(void);
19         void setName(string name);
20         void setCountry(string country);
21         virtual void Display(void);
22         virtual double computeTuition(void)=0;
23         virtual ~Student();
24     private:
25         string Name;
26         string Country;
27 };
28 
29 class CreditStudent: public Student {
30     public:
31         CreditStudent(int credits);
32         CreditStudent();
33         void setNumCredits(int credits);
34         int getNumCredits(void);
35         void Display(void);
36         double computeTuition(void);
37         ~CreditStudent();
38     private:
39         int StudentCredits;
40 };
41 
42 class ExchangeStudent: public Student {
43     public:
44         ExchangeStudent(double courses);
45         ExchangeStudent();
46         void setNumCourses(double courses);
47         double getNumCourses(void);
48         void Display(void);
49         double computeTuition(void);
50         ~ExchangeStudent();
51     private:
52         double StudentCourses;
53 };
5752759 [rkeene@sledge /home/rkeene/personal/school/comp-sci-ii/lab2]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2002-08-29 17:23:54