Declare array of Object, within the Object's constructor?
<p>If I have a class, MyClass, can I declare an array of MyClass on the heap, within the constructor of MyClass?</p>

<p>I can do this in C# but it doesnt seem to like it in C++?</p>

<p>I also get an error about no appropriate constructor for type MyClass??</p>

<pre><code>class MyClass
{
    public:
        MyClass(int);
    private
        MyClass* array;
};


MyClass::MyClass(int size){
    array = new MyClass[size];
}
</code></pre>
