samedi 16 janvier 2021

updating father field (of linked list) from a son class

I have an abstract class called EventContainer, and all kinds of Events that are son classes of it, and I need that when I am in a son class, for example Festival class, and I want to add an event, it will be added to EventContainer's list, and I need it to happen when I add an event from any son class,
how can I do such a thing?

Thanks in advance for your help!

Aucun commentaire:

Enregistrer un commentaire