title: A reference to the object of the class with dynamically allocated memory and destructor
body: <p>Let's assume I have three classes:</p>
  
  <pre><code>class A{
  };
  
  class B{
     int S;
     A* arr;
     B(int s):S(s){
        arr = new A[S];
     }
     ~B(){
     delete [] arr;    
     }
  };
  
  class C{
     B&amp; b;
     C(B&amp; b): b(b){}
  };
  </code></pre>
  
  <p>Should I define explicitly a destructor in class C? What would it look like?</p>