创建型模式-原型 Creational Patterns-Prototype

specify the kind of objects to create using a prototypical instance, and create new objects by copying this prototype.

依赖关系的倒置

– 抽象A直接依赖于实现细节b

抽象不应该依赖于实现细节,实现细节应该依赖于抽象。

–抽象A依赖于抽象B,实

现细节b依赖于抽象B

MemberwiseClone();

posted @ 2007-07-27 12:57  许晓光  阅读(191)  评论(0编辑  收藏  举报