. 13.                                           __       391

salary::reset_all(400) ;

wl-reset_all(400) ;

(&w2) -> reset_all(400);

    - (   
 )    , 

wl.reset_all(400) ;

     ,  reset_all ()   .
  ,  

salary::reset_all(400) ;

,    .    .  5.8, -
  static  const,  . 144 (  salmy.cpp).

.12.7.  (mutable)

  mutable   ,   
  , ,   , .   -
       const_cast.  -
  ,     C++.  -
  .  5.8.1,  (mutable),  . 146 ( 
mutable.cpp).

.12.8.  

      (Occam's razor). 
 ,        -
    , , , ,
,   .    -
,        ,   
  .

. 13. 

 (inheritance)        -
.          -
 .         -
 :

class _:

public I protected I private) opc __
{

 

J   'I

  class       struct, 
,    .   public, protected 
private        . 