Template Method模式建议,应当将公共模板代码移到继承层次结构之上,将算法细节推迟到子类。
The Template Method pattern suggests that I should move common boilerplate code up the inheritance hierarchy, deferring algorithmic details to child classes.
无论如何,这两种类之间存在大量相同的行为,它们继承了公共基类 AbstractList。
Regardless, it turns out that a phenomenal amount of behavior between these two classes is identical, and as a result, both in turn inherit from a common base class, AbstractList.
这些分析涉及到公平与效益价值、著作权法的公共利益目标、作品创作的社会性与继承性、独创性与公有领域等方面。
Such analyses are concerned with the value of justice and efficiency, the aim of public interests, the social nature of works creation and heritage, originality and public domain, etc.
应用推荐