Skip to content

Commit 35dcb05

Browse files
authored
update
1 parent 7b7a748 commit 35dcb05

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Starategy_Pattern/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Strategy Pattern
22

33
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-
ץ
4+
This pattern allows us the make "horizontal" reuse of code, instead of vertical (inheritance) - Uses composition rather then inheritance.
65

76
Example of use of Strategy Pattern: Arrays.sort(). The sorting algorithm can change irrespective of its' user's code.
87

0 commit comments

Comments
 (0)