Is it always necessary to declare destructor as virtual, if the class contains atleast a virtual function?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/461203/when-to-use-virtual-destructors">When to use virtual destructors?</a>  </p>
</blockquote>



<p>If all the data members of a class (which has virtual function) and it's inherited class are of non pointer type (means it can not hold any dynamic memoroy), is it required to declare destructor as virtual?</p>

<p>Example</p>

<pre><code>class base {
    int x;
public:
    virtual void fn(){}

};

class der: public base {
    int y;
public:
    void fn(){}

};
</code></pre>

<p>Here do we need a virtual destructor?</p>
