回调函数(钩子函数、模板函数、回调接口)的实现原理

回调函数、钩子函数、模板函数、回调接口这些所描述的都是同一种东西,只是名字不一样。
所谓回调函数就是通过运用模板方法的设计模式设计的。通过设计回调接口实现!!
image
image
image
image

posted @ 2022-09-27 20:16  Little_Monster-lhq  阅读(63)  评论(0编辑  收藏  举报