会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
呆贝斯的地盘
呆笨死,唯有勤学
博客园
首页
新随笔
联系
订阅
管理
随笔 - 52
文章 - 0
评论 - 2
阅读 -
62094
2022年2月13日
设计模式——简单工厂模式
摘要: 简单工厂模式(Simple Factory Pattern):又称为静态工厂方法(Static Factory Method)模式,它属于类创建型模式。在简单工厂模式中,可以根据参数的不同返回不同类的实例。简单工厂模式专门定义一个类来负责创建其他类的实例,被创建的实例通常都具有共同的父类。
阅读全文
posted @ 2022-02-13 22:53 呆贝斯
阅读(19)
评论(0)
推荐(0)
编辑
公告
昵称:
呆贝斯
园龄:
4年
粉丝:
1
关注:
2
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
随笔分类
Python(19)
前端(2)
数据结构(2)
Docker(3)
基础知识(1)
设计模式(2)
随笔档案
2022年3月(3)
2022年2月(5)
2022年1月(1)
2021年12月(4)
2021年10月(2)
2021年8月(1)
2021年7月(9)
2021年6月(2)
2021年5月(2)
2021年4月(7)
2021年3月(16)
阅读排行榜
1. 记一次使用git报错,解决Unable to negotiate with **** port 22: no matching host key type found. Their offer: ssh-rsa(32048)
2. Ubuntu安装docker-compose(摘自官网,自用)(6283)
3. python2.7安装pyinstaller(5197)
4. ubuntu修复找不到sudo命令(3613)
5. Ubuntu安装docker(摘自官网,自用)(2243)
评论排行榜
1. 记一次使用git报错,解决Unable to negotiate with **** port 22: no matching host key type found. Their offer: ssh-rsa(1)
2. Django框架中settings.py注释(1)
推荐排行榜
1. 记一次使用git报错,解决Unable to negotiate with **** port 22: no matching host key type found. Their offer: ssh-rsa(4)
最新评论
1. Re:记一次使用git报错,解决Unable to negotiate with **** port 22: no matching host key type found. Their offer: ssh-rsa
感谢,已解决
--kobeason
2. Re:Django框架中settings.py注释
真棒
--特喵的汪
点击右上角即可分享