惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tor Project blog
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
IT之家
IT之家
I
InfoQ
The Cloudflare Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
人人都是产品经理
人人都是产品经理
美团技术团队
B
Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Last Week in AI
Last Week in AI
TaoSecurity Blog
TaoSecurity Blog
Hacker News: Ask HN
Hacker News: Ask HN
T
Threatpost
H
Heimdal Security Blog
爱范儿
爱范儿
博客园_首页
SecWiki News
SecWiki News
腾讯CDC
大猫的无限游戏
大猫的无限游戏
GbyAI
GbyAI
The Register - Security
The Register - Security
N
News | PayPal Newsroom
Recent Commits to openclaw:main
Recent Commits to openclaw:main
云风的 BLOG
云风的 BLOG
酷 壳 – CoolShell
酷 壳 – CoolShell
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Security Latest
Security Latest
A
Arctic Wolf
P
Privacy & Cybersecurity Law Blog
T
The Blog of Author Tim Ferriss
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
量子位
Schneier on Security
Schneier on Security
Microsoft Azure Blog
Microsoft Azure Blog
Attack and Defense Labs
Attack and Defense Labs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Webroot Blog
Webroot Blog
C
Check Point Blog
Y
Y Combinator Blog
T
The Exploit Database - CXSecurity.com
aimingoo的专栏
aimingoo的专栏
I
Intezer
博客园 - 叶小钗
Cisco Talos Blog
Cisco Talos Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件

博客园 - 张伦

Entity Framework 自动生成代码 如何用继承 PostMessage和SendMessage有什么区别? 正则表达式之日期类型(匹配闰年) C语言随记 - 张伦 - 博客园 Delphi 进制转换——十六进制 to 十进制浮点数 Modbus通讯类(Delphi) 未曾清贫难成人 Delphi中数据集导出为Excel C#sql查询导出为excel文件,并最终释放excel资源。 水晶报表ReportViewer之“创建控件错误” 什么是RFID matlab生成exe,含gui图形界面 EVC中int与string的相互转化 什么是嵌入式操作系统? WinCE和PocketPC的异同 Delphi中MSComm控件的安装(Licenses information for TMSComm not found) ARM是什么? 什么是设计模式? ASP.NET:创建对话框
创建型设计模式分类
张伦 · 2005-03-10 · via 博客园 - 张伦

创建型设计模式分类

属于创建型模式的有:
1、工厂方法模式(Factory Method Pattern)提供了一个简单的决策类,它根据提供的数据返回一个抽象基类的多个子类中的一个。
2、抽象工厂模式(Abstract Factory Pattern)提供了一个创建并返回一些列相关对象的接口。
3、单件模式(Singleton Pattern)是指某个类只能有一个实例。它提供了一个访问该实例的全局访问点。
4、生成器模式(Builder Pattern)将一个复杂对象的构建与它的表示分开,这样就能根据程序的需要创建不同的表示形式。
5、原型模式(Prototype Pattern)是先实例化一个类,然后拷贝或克隆该类来创建新的实例,可以用公有方法进一步修改这些实例。

posted on 2005-03-10 13:42  张伦  阅读(927)  评论(0)    收藏  举报

刷新页面返回顶部