首页 > 其他 > 详细

设计模式 - 创建型模式(Creational Patterns)

时间:2020-02-17 10:51:57      阅读:54      评论:0      收藏:0      [点我收藏+]

设计模式 - 创建型模式(Creational Patterns)

创建型模式提供了一种在创建对象的同时隐藏创建逻辑的方式,而不是使用 new 运算符直接实例化对象。这使得程序在判断针对某个给定实例需要创建哪些对象时更加灵活。包括:

  • 工厂模式(Factory Pattern)
  • 抽象工厂模式(Abstract Factory Pattern)
  • 单例模式(Singleton Pattern)
  • 建造者模式(Builder Pattern)
  • 原型模式(Prototype Pattern)

 

设计模式 - 创建型模式(Creational Patterns)

原文:https://www.cnblogs.com/lichu-lc/p/12320303.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!