大話設計模式十八:迭代器模式

一.模式定義 迭代器模式(Iterator Pattern) :提供一種方法來訪問聚合對象,而不用暴露這個對象的內部表示。 Iterator Pattern: Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
相關文章
相關標籤/搜索