I have the following code However I don’t know how to do this, as I cannot override doEventStuff with something specific. Does anyone know how to do this? Answer It’s not really clear what you’re trying to do, but perhaps you just need to make Event itself generic: