C++ -- Should the subclass destructor explicitly call base class destructor?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/677620/do-i-need-to-explicitly-call-the-base-virtual-destructor">Do I need to explicitly call the base virtual destructor?</a>  </p>
</blockquote>



<p>Hello all,</p>

<p>I would like to know whether or not a sub-class destructor should call base-class destructor explicitly. My answer is NO.</p>

<p>For example,</p>

<pre><code>class A
{
public:
   A() {...}
   virtual ~A() {...}
protected:
   ...
private:
   ...

};


class B: public A
{
public:
   B() {...}
   virtual ~B() 
   {
     ...
     // should we call destructor of A?
   }
protected:
   ...
private:
   ...

};
</code></pre>

<p>Thank you</p>
