Lets say we have 3 classes.
class IObject{void Update() = 0;};class CObjOne : public IObject{void Update() {}};class CObjTwo : public IObject{void Update() {}};
Now given a constant number of total max objects, what is the best way to handle memory allocation not knowing #obj 1, #obj 2, just the total number of IObjects available?
Any Ideas?