Sending message to child from parent

后端 未结 3 1667
一生所求
一生所求 2021-01-21 06:02

I have class Child inherited from class Parent. What I want is to send message to child, which has implementation of that message. So it\'s like calling pure virtual function fr

3条回答
  •  渐次进展
    2021-01-21 06:41

    Unless am the one who's not understanding your problem. If both parent and child implement some onCancel code why not just call [super onCancel] inside the childs onCancel and this will be executed before the child's code is executed.

提交回复
热议问题