Loading

摘要: 1. 定义: Define an interface for creating an object,but let subclasses decide which class to instantiate.Factory Method lets a class defer instantiation 阅读全文
posted @ 2019-11-23 21:50 javadaydayup 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1. 定义: Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from the cli 阅读全文
posted @ 2019-11-23 19:45 javadaydayup 阅读(170) 评论(0) 推荐(0) 编辑