Hello All,

I have a class that has a data member which is an array of pointers to derived class instances.

ex.


class COwner
{
public:
CProperty *array[28];
int num_props;
public:
COwner();
~COwner();
SetProp(int num_props);
virtual bool buyProperty(CProperty* const) = 0;
virtual CProperty* sellProperty(const CPoint&) = 0;
const CProperty* operator[](int n) const;
};





CProperty is a base class, the derived classes are CHouses, CApartments, CBeachfronts.

Question: (hope this isn't too trivial)

1. do I assign the array of pointers to the derived instances in the constructor of "COwner" class?



I am using MFC application. there is no main!

any help is appreciated.

thank you