title: how to destruct an array
body: <pre><code>#include &lt;cstdlib&gt;
  #include &lt;iostream&gt;
  
  using namespace std;
  
  const unsigned long MAX_SIZE = 20;
  typedef int ItemType;
  
  class Heap {
  private:
          ItemType array[MAX_SIZE];
          int elements; //how many elements are in the heap
  public:
        Heap( )
         ~Heap( )
         bool IsEmpty( ) const
        bool IsFull( ) const
        Itemtype Retrieve( ) 
        void Insert( const Itemtype&amp; )
  };
  </code></pre>
  
  <p>Let's say I have this as my header file. In my implementation for this, what is the best way to do Heap() constructor and ~Heap() destructor.</p>
  
  <p>I have</p>
  
  <pre><code>Heap::Heap()
  {
     elements = 0;
  }
  
  Heap::~Heap()
  {
     array = NULL;
  }
  </code></pre>
  
  <p>I am wondering if this is the proper way to destruct and construct an array in this case.</p>