There was an error while loading. Please reload this page.
1 parent 7b7a748 commit 35dcb05Copy full SHA for 35dcb05
Starategy_Pattern/README.md
@@ -1,8 +1,7 @@
1
# Strategy Pattern
2
3
Defines a family of algorithms, encapsulates each one, and makes them interchangable.
4
-This pattern allows us the make "horizontal" reuse of code, instead of vertical (inheritance) - Uses composition rather then inheritance.
5
-ץ
+This pattern allows us the make "horizontal" reuse of code, instead of vertical (inheritance) - Uses composition rather then inheritance.
6
7
Example of use of Strategy Pattern: Arrays.sort(). The sorting algorithm can change irrespective of its' user's code.
8
0 commit comments