The object that you’re extending,Event
, does not have a constructor that takes no arguments. So you need to call super
and specify arguments like you do in your other constructor.
solved Implicit super constructor Event() is undefined [duplicate]