After that, the parent, and child can discuss what happened and solve the problem together.
之后,父母和孩子可以讨论发生了什么,一起解决问题。
This works fairly well, but can become a problem in situations where one object references another in a parent-child relationship.
这种方式工作得很好,但是如果一个对象使用父子关系引用另一个对象,那就会引发问题。
There are a few user space solutions to this problem, such as creating a destructor for the parent class that will release the child object directly.
有一些用户空间解决方案可以解决这个问题。例如为父类创建一个解构函数将直接释放子对象。
应用推荐