A hook is a method that is declared in the abstract class, but only give an empty or default implementation. This gives subclasses the ability to "hook into" the algorithm at various points, if they wish; a subclass is also free to ignore the hook.
posted on 2005-08-15 09:55
Dave 阅读(140)
评论(0) 编辑 收藏