Definition
|
UML class diagram
Participants
The classes and/or objects participating in this pattern are:
|
| Sample code in C# | download C# source code zip file |
This structural code demonstrates the Strategy pattern which encapsulates functionality in the form of an object. This allows clients to dynamically change algorithmic strategies.
This real-world code demonstrates the Strategy pattern which encapsulates sorting algorithms in the form of sorting objects. This allows clients to dynamically change sorting strategies including Quicksort, Shellsort, and Mergesort.
|
博客涉及C#相关内容,包含UML类图以及参与者等信息,与信息技术领域的编程和设计相关。

163





