    TDerived  - count,       
  
       ____ 
    class TBase { private: 
    int count; public: 
    TBase() { count = 0; } void SetCount (int n) 
    { count = n; } int GetCount(void) 
    { return count; } 
    class TDerived: public TBase { private: 
    int secondCount; public: 
    TDerivedf) 
    void ChangeCount(int n) 
    { SetCount(GetCount() + n); } 
    -   ____ 

    . 14.5.   TBase  TDerived 

       

              . 
  ,    - . 
    .   ,  
     -  
. . 14.6       
    ,    . 

    ,       
      
      
      
     ^"^,/ 
      
    ->     
    -*     
          ,    
  "*     
            

    . 14.6. ,          

         ,   ,   
  ,   . 
            ,    .
                 
 . 
             ,  
       . 

     

     15 ,       . 

    340  III.   ANSI C++ 
