C++: is it right to delete all declarations in public and private?
<p>I am learning C++ and I am not clear about the destructor of a class. For example:</p>

<pre><code>class A:
{
  public:
    int valueA;
  private:
    int valueB;
};

A:~A()
{
  delete valueA;
  delete valueB;
}
</code></pre>

<p>So, basically is it right to delete every declarations in the public and private?</p>
