摘要: What is the Iterator Design Pattern? The Iterator pattern provides you with a uniform way to access different collections of Objects. If you get an Ar 阅读全文
posted @ 2019-07-22 17:03 CodingYM 阅读(117) 评论(0) 推荐(0) 编辑
摘要: What is the Visitor Design Pattern? Allows us to add methods to classes of different types without much altering to those classes. We can make complet 阅读全文
posted @ 2019-07-22 16:53 CodingYM 阅读(180) 评论(0) 推荐(0) 编辑
摘要: In State pattern a class behavior changes based on its state. This type of design pattern comes under behavior pattern. In State pattern, we create ob 阅读全文
posted @ 2019-07-22 14:58 CodingYM 阅读(196) 评论(0) 推荐(0) 编辑
摘要: --referenced from the book "Head First Design Pattern." Publishers + Subscribers = Observer Pattern Observer pattern is used when there is one-to-many 阅读全文
posted @ 2019-07-22 13:15 CodingYM 阅读(239) 评论(0) 推荐(0) 编辑
摘要: In Strategy Pattern, a class behaviour or its algorithm can be changed at run time. This type of design pattern comes under behaviour pattern. In stra 阅读全文
posted @ 2019-07-22 11:08 CodingYM 阅读(285) 评论(0) 推荐(0) 编辑