I have a base class GameObject:

/// Base class of most objects in the game
class GameObject{
        world[layer] = this;

    abstract void update(){}

    void draw(){}

I want to make sure that whenever a class inherits from this, the base constructor is always called. Either that or have an assertion that gives an error if it isn't called.


Reply via email to