I have the following error when running the code:
error: no matching function for call to 'Event::Event()'
note: candidates are: Event::Event(unsigned int)
Does anyone know what is wrong with the constructor of my derived class?
The base class has no default constructor.
When an object of the derived class is created a constructor of the derived class shall call a constructor of the base class. If you will not specify explicitly in the constructor of the derived class which constructor has to be called for the base class then the compiler tries to call the default constructor of the base class. But it does not find the default constructor of the base class. So it issues an error.