300                                                    10. 

   ',         -
    .

         
 .     .
        . :

class worker {
public:

const int soc_sec;

const char* name;

class student {
public:

const char*name;

};

class student_worker: public student, public worker {
public:

void print ()  { cout  " . : "  soc_sec 
"\n" ;

cout  name; ..... }       //

   student_worker: :print()   soc_sec , 
  name .   ,  -
  name      .

         
 .         -
 ,        .  -
  ,      
.  :

class student: public virtual person {

};

class worker: public virtual person {

};

'    ,         -
,    ,      -  ()
    ,       ().  . .

     ;                          ,
D     ;            /^\^        D, D   ,
   ,               *'      *       ;

               ^\^'         
                    '        