大话设计模式十八:迭代器模式

一.模式定义 迭代器模式(Iterator Pattern) :提供一种方法来访问聚合对象,而不用暴露这个对象的内部表示。 Iterator Pattern: Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
相关文章
相关标签/搜索