. 13.                                                      393

// 
vect_bnd::vect_bnd(vect& v) :

vect(v), 1_bnd(0), u_bnd(size - 1) { }

// 
vect_bnd::vect_bnd(vect_bnd& v) :

vect(v), 1__bnd(v.1_bnd), u_bnd(v.u_bnd) { }

vect_bnd::vecfc_bnd(const int a[], int n, int Ib) :

vect(a, n) , 1_bnd(lb), u_bnd(Ib + n) { }

        -
  (    ).

. 13.1.  

  (multiple inheritance)   -
       .   -
 ,         -
 . :

class shape {

//   

\ .

i I

class tview {

//,   

class tshape : public shape, private tview {
//  ,
//  

     tshape    
shape  ,    tview    . -
       (adaptor pattern). 
       ,
  ,     - (mixin class).

,      -
   (directed acyclic graph  DAG) . -
      ,    -
,         .

    ,     -
,   .     -
/,         .

         
 .         -
 ,        . -
       .  
 .  10.4,  ,  . 289 (  shape2.cpp).