title: C++ Initialize Pointer in Member Initialization List
body: <p>I am wondering if there is a way I can, in my class' constructors, initialize an array in the base initialization list.</p>
  
  <p>Right now, I am initializing myChars (a char*) to an empty character array of size DEFAULT_SIZE:</p>
  
  <pre><code>    A::A() :
        mySize(0), maxSize(DEFAULT_SIZE)
      {
           myChars = new char[DEFAULT_SIZE];
      }
  </code></pre>
  
  <p>Is there any way to do this in the base initialization list? So that it would be simply:</p>
  
  <pre><code>     A::A() :
        mySize(0), maxSize(DEFAULT_SIZE), **myChars initialized here**
      {
      }
  </code></pre>
  
  <p>Thanks!</p>