我写的设计模式的文章总结(8)

2019-03-22 17:12

instance_flag=false; //true if 1 instance

public PrintSpooler() throws SingletonException {

if (instance_flag)

throw new SingletonException(\ else

instance_flag = true; //set flag for 1 instance System.out.println(\ }

//------------------------------------------- public void finalize() {

instance_flag = false; //clear if destroyed }

}

/**************** 改错结束 ******************/ 面向对象的原则

1,The Open/Closed Principle (OCP) 2,The Liskov Substitution Principle (LSP) 3,The Dependency Inversion Principle (DIP) 4,The Interface Segregation Principle (ISP)

5,The Reuse/Release Equivalency Principle (REP) 6,The Common Closure Principle (CCP) 7,The Common Reuse Principle (CRP)

36

设计模式

8,The Acyclic Dependencies Principle (ADP) 9,The Stable Abstractions Principle (SAP)

37


我写的设计模式的文章总结(8).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:股权购买协议 中英文

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: