I have a Child class inherited from the Parent class. I want to send a message to the child in whom this message is implemented. So it's like calling a pure virtual function from the parent. If I send a message from the parent, I will receive a warning that the parent may not reply to this message. This is true because only the Child has its realization.
Basically, the parent will detect some actions, for example, pressing the cancel button, but each child has its own implementation of this cancel message, so I want to call from Parent onCancelso that they can do their job.
I can’t believe that using inheritance I still need to use delegates ...
Pablo source
share