1.8.  31

class student {      // 
public:              //  ,
//,  , 

student(char* nm, int id, double g, year x) ;

void print() const;

private:

int student_id;    //

double gpa;        // 

year ;            //

char name[30];     //

-i
}    ;

class grad_student : public student {// 
public:              //  :

//  .
// ,  
grad_student(char* nm, int id, double g,

year x, support t, char* d, char* th) ;

void print() const;

private:

support s;        // 
char  dept[10];   //
char  thesis[80]; //
};

   grad_student   , a student  . -
       pub lie, 
 , ,     student  -
    grad_student.     -
  .    ,  
 grad_student   student.

        -
. ,  ,       -
,       person ().  
student       --
,     . , person  -
      .  -
    .

			 ,)
			
			f  )
			-""^^ ^^"^----,
			^ () (^
			^-^"""' "'"~
			 ) (  )