150                             5.    - 

 ,     C++     
private  protected.  ,     class 
, ,  private     .

 ,     ,  .  -
 ,         
.      
.

       .   
.       -
 .        -
.   -   ,   -
  (accessor functions).   
       .  
stack - top_of(), empty ()  full()   
.      const. -
reset ()   (mutator).    
    top.  ,  
 .   top   ,     
 .

 -     -
      .     
  .        ,
    .     
  .     ,  : -
    ,     -
  .



1.        .   -
          .  C++
     ,    -
  .

2.        -
   .     ,  
.           -
.          .  (),
        -> .  ,  
()  [ ],   .     -
    : : .

3.  struct   C++ ,     
.      ; 
      ,    .
   ,  ,     
 struct,       .