I'm new to c++ and i'm trying to make a simple game engine. I am trying to make a game object and component system.
I have a base class for all object and I am trying to store all children of the object in an array inside the class. But i get an error when trying to make an array of the class inside the class.
class Object {
public:
Object children[]; //This is where I get the error
};
Is there a way to do this? If not, how can I work around this issue?