摘要:
The Iterator Pattern provides a way to access the elements of an aggregate object sequentially withoutexposing its underlying representation 阅读全文
摘要:
The Template Method Pattern defines the skeleton of algorithm in a method, define some steps tosubclasses. Template Method lets subclass redefine certain steps of an algorithm without changingthe algorithm's structrue.Class diagram:abstract class AbstractClass{ final void templateMethod(){ primi 阅读全文