I am unsure how to create an array of objects within its own class. For example:
class A {
public:
const static int MAX_SIZE = 10;
private:
A arrayOfOBjects[MAX_SIZE];
}
I get an error saying, "incomplete type is now allowed" How would I go about this? If I declare an array of objects from another class inside Class A it will work.. But how do I create an array of objects within its own class?