title: read access violation. this was 0xCDCDCDCD
body: <p>I'm confused as to what I'm doing wrong?  While debugging, <code>this</code> shows <code>0xcdcdcdcd {theDouble=??? }</code>so i know my variable isnt getting stored in my mutator.  How would i go about fixing this issue? Am I supposed initialize <code>this</code> somewhere? I am using visual studio by the way.
  Thank you for the help.</p>
  
  <pre><code>int main()
  {
      int i = 0;
      const int MAX = 4;
      CLASS **object = new CLASS*[MAX];
      string name = "todd";
      string aString = "words";
      double aDouble = 10.0;
      object[i]-&gt;setDouble(aDouble);
      return 0;
  }
  
  //.cpp
  CLASS::Class()
  {
      theDouble = new double;
      *theDouble = NULL;
  }
  CLASS::Class(double aDouble)
  {
      *theDouble = aDouble;
  }
  void CLASS::setDouble(double p)
  {
      *theDouble = p; 
  double Class::getDouble()
  {return (*theDouble);}
  
  //.h
  class CLASS
  {
   protected:
      double *theDouble;
   public:
      Insurance();
      Insurance(double premium);
      //~Insurance();
      void setDouble(double p);
      double getDouble();
      string toString();
     };`
  </code></pre>