摘要:
原文链接 Singleton: Intent Singleton is a creational design pattern that lets you ensure that a class has only one instance, while providing a global acce 阅读全文
posted @ 2024-10-24 23:41
Mephostopheles
阅读(25)
评论(0)
推荐(0)
摘要:
原文链接 Builder: Problem Example: a complex object that requires laborious, step-by-step initialization of many fields and nested objects 一个复杂对象的创建通常由多个部 阅读全文
posted @ 2024-10-24 21:05
Mephostopheles
阅读(35)
评论(0)
推荐(0)
摘要:
原文链接 Factory Method: Problem Example: a logistics management application 示例:物流管理应用程序 – First version: handling transportation by trucks, with a Truck 阅读全文
posted @ 2024-10-24 11:13
Mephostopheles
阅读(20)
评论(0)
推荐(0)

浙公网安备 33010602011771号