

      i       

             

       

           

    . 14.9.  ,       
   


        ,       .  
TBase()  strdup()         
       sptr. 
 ~TBaseO   ,   TBase   
 c. - Display()     
     .      
TBase  

    TBase state("California") ; 

    state  

    state. Display() ;	

    , ,   ,  ,    
     "State: ".      
   : 

    cout  "State:   ";	
    state. Display(); 

            .  
      TBase    - 
Display()  .      
 : 

    class TState:  public TBase {	
    public:	
      TState(const char *s): TBase(s) { } 
      void Display(void) ; //  
    } ;

      ,      - 
Display().     Display  ,   
.     -  :	

    void TState::Display(void)	
   { 
       cout  "State:   "; //   
       TBase: : Display();    //   - 
   } 


     14. -  345 
