title: need to call the base destructor method from a derived class in c++?
body: <p>Please consider the following:</p>
  <pre><code>class base{
      base();
      ~base();
  }:
  
  class derived : public base{
  
  };
  </code></pre>
  <p>Does a base class destructor get automatically invoked when a derived object is destructed when the derived class has no destructor defined?</p>
  <p>Otherwise, if I DO have a destructor in the derived class too, do I have to call the base class destructor explicitly?</p>
  <pre><code>class base{
      base();
      ~base();
  }:
  
  class derived : public base{
       derived();
       ~derived{
             base::~base(); //do I need this?
       }
  };
  </code></pre>