提供一种方法顺序访问聚合对象中的元素,而不暴露其内部表示——这是?

设计模式

  1. A.访问者模式(Visitor)
  2. B.组合模式(Composite)
  3. C.中介者模式(Mediator)
  4. D.迭代器模式(Iterator)