你的位置: 码友网首页 / 资讯源列表 / C# Design Patterns - Strategy

关于[C# Design Patterns - Strategy]的摘要:

The Strategy design pattern is a behavioral design pattern which allows us to define different functionalities, put each functionality in a separate class and make their objects interchangeable. In other words, we have a main Context object that holds a reference towards a Strategy object and delegates it by executing its functionality. If we want to change the way the Context performs its work, we can just replace the current Strategy object with another one.

原文地址: https://code-maze.com/strategy/

收录时间: 2019-04-09 浏览量: 1892 分类: 设计模式

| 0 收藏 | 0